How Does NETCONF YANG Represent Data Structures?
Short answer
B in an XML tree format
Question
Key Takeaways
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.
Common mistake: 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.
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
These links open the official vendor documentation in a new tab.
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.
Community Votes
100% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 4 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 4
-
Tadese 👍 2 Answered BNETCONF 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 👍 1B 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.
-
supershysherlock 👍 1 Answered BB - 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 Answered BB. in an XML tree format
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All 350-401 Questions
Access 218 questions with complete answers and detailed explanations.
View Full 350-401 Practice Test →