Which two items are found in YANG data models?

Which two items are found in YANG data models? (Choose two.)

  1. HTTP return codes
  2. rpc statements Source Reference Answer
  3. JSON schema
  4. container statements Source Reference Answer
  5. XML schema

Community Votes

BD
100%

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

Community Insight

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.

Choosing C or E because YANG data can be represented in JSON and XML; however, YANG models do not contain JSON or XML schemas.

Community Discussion (5 comments)

[Removed] 👍 4 Selected: BD
B 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 👍 4 Selected: BD
rpc 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 👍 1
YANG is only used to model the data or define the structure, you can present data in the XML and JSON data formats.
shefo1 👍 3 Selected: BD
B and D is right
leehyoeun 👍 2 Selected: BD
answer is b d

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

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

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.

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