How Does NETCONF YANG Represent Data Structures?

How does NETCONF YANG represent data structures?

  1. as strict data structures defined by RFC 6020
  2. in an XML tree format Source Reference Answer
  3. in an HTML format
  4. as modules within a tree

Community Votes

B
100%

100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The exam tests whether you distinguish between the YANG data modeling language (which defines schema) and how NETCONF represents data in practice—as an XML tree, not as 'strict data structures' or modules.

NETCONF uses YANG to define schema while encoding configuration and state data as an XML tree format. Community consensus confirms option B is correct, as YANG models data but NETCONF represents actual data instances in an XML tree.

Option A is the most common trap because RFC 6020 defines YANG, but it describes the modeling language, not how NETCONF represents data. Candidates confuse the schema definition with the actual XML-encoded data representation used by NETCONF.

Community Discussion (4 comments)

supershysherlock 👍 1 Selected: B
B - XML tree format. Whilst RFC 6020 defines the YANG data modeling language used by NETCONF, it does NOT does not specify "strict data structures".
teems5uk 👍 2 Selected: B
B. in an XML tree format
Tadese 👍 2 Selected: B
NETCONF provides various operations to retrieve and edit configuration data from network devices. The Content Layer consists of configuration and state data which is XML-encoded. The schema of the configuration and state data is defined in a data modeling language called YANG.
kldoyle97 👍 1
B makes the most sense in a NETCONF context. YANG is leveraged by NETCONF to make RPCs (Remote Procedure Calls) in XML tree format. options A & D generally describe what a YANG data model is, not relating to NETCONF.

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

NETCONF's content layer consists of configuration and state data that is XML-encoded, as explained with a layered model in community comment [1]. YANG is used to define the schema of that data, but when NETCONF retrieves or edits data, the information is presented in an XML tree format. Option B aligns directly with the standard NETCONF operations and encoding model.

Why the Other Options Are Wrong

Option A references RFC 6020, which defines the YANG language, but it does not define "strict data structures" as the NETCONF representation method; comment [2] explicitly warns against this misinterpretation. Option D is vague—YANG modules are organized in a tree, but that describes the schema hierarchy, not how NETCONF represents data structures in XML. Option C is irrelevant because NETCONF uses XML, not HTML, for data encoding.

Community Comment Notes

Comment [1] correctly states that the Content Layer is XML-encoded and that YANG defines the schema for configuration and state data. Comment [3] reinforces that YANG is leveraged by NETCONF to make RPCs in an XML tree format. Comment [2] cautions against confusing RFC 6020 with the actual encoding, supporting B as the consensus best answer.

Official Reference

Exam Strategy

Focus on the difference between a YANG data model (schema) and the XML encoding NETCONF uses for actual data. In the exam, if a question asks how NETCONF represents data, look for 'XML tree format' and avoid options that only describe the YANG modeling language itself.

Related Analysis

Practice All 350-401 Questions

Access 218 questions with complete answers and detailed explanations.

View Full 350-401 Practice Test →

← Back to 350-401 Study Guide