Which two items are found in YANG data models?
Short answer
BD rpc statements container statements
Question
Key Takeaways
The exam tests whether you can distinguish YANG's own constructs from its data encodings; many candidates confuse JSON or XML schema with YANG itself.
YANG data models define hierarchical structures using containers and remote procedure calls; community consensus points to rpc and container statements.
Common mistake: Choosing C or E because YANG data can be represented in JSON and XML; however, YANG models do not contain JSON or XML schemas.
Expert Analysis
Why the Answer Is Correct
YANG is a data modeling language used to model configuration and state data for network devices. The two required constructs are rpc statements, which define remote procedure call operations, and container statements, which create hierarchical nodes in the data tree. Community comments confirm that both B and D are the chosen answers, with comment [1] explaining how rpc statements allow clients to invoke operations and container statements organize data elements.
Why the Other Options Are Wrong
HTTP return codes (A) belong to RESTCONF or REST APIs, not to YANG models. JSON schema (C) and XML schema (E) are external data representations: YANG can map to JSON or XML, but these schemas are not contained in the YANG model itself. Comment [3] correctly notes that YANG defines the structure, while data can be presented in XML or JSON formats.
Community Comment Notes
Most commenters directly selected BD, with several providing detailed reasoning. Comment [2] explicitly states rpc statements define remote procedure calls and container statements define hierarchical structures. The discussion reinforces that YANG is concerned only with modeling data and operations, not with transport protocols or data format schemas.
Official Reference
These links open the official vendor documentation in a new tab.
Exam Strategy
When asked what is 'found in YANG models', focus on YANG keywords like container, leaf, leaf-list, list, rpc, notification, and augment. Remember that JSON and XML are only encoding formats, not part of the YANG model itself.
Community Votes
100% of anonymous learners picked answer BD. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 5 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 5
-
[Removed] 👍 4B and D are correct rpc statements: YANG data models include rpc (Remote Procedure Call) statements. These statements define operations that can be invoked remotely on network devices. RPCs allow clients to request specific actions or services from the device, such as configuration changes or data retrieval. container statements: YANG models use container statements to define hierarchical structures. Containers group related data nodes together, creating a structured representation of the data. They help organize data elements within the model.
-
RickAO76 👍 4rpc statements define remote procedure calls that can be invoked by clients to perform specific actions on network devices. container statements define hierarchical structures for organizing data elements within YANG data models.
-
EAC84 👍 1YANG is only used to model the data or define the structure, you can present data in the XML and JSON data formats.
-
shefo1 👍 3B and D is right
-
leehyoeun 👍 2answer is b d
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 →