The correct answers are B. rpc statements and E. container statements.
YANG is a data modeling language used to model configuration and operational data for protocols such as NETCONF and RESTCONF. In YANG, the model is built using defined language statements such as container, list, leaf, and rpc. Cisco documentation explains that actions are defined in YANG models using RPC statements, and the YANG language definition identifies container as a standard statement used to define an interior data node in the schema tree.
Cisco documentation states that YANG models can define operational actions using RPC statements. These are used to trigger operations such as commands or actions on the device.
A container is one of the fundamental building blocks of a YANG model. It represents an interior node in the hierarchical data tree and is commonly used to group related configuration or state data.
A. HTTP return codes These belong to HTTP-based protocol behavior, not to the YANG model language itself.
C. JSON schema YANG is not a JSON schema language. Although YANG data may be encoded in JSON for some APIs, JSON schema is not a YANG model element. Cisco notes that protocols may use JSON formatting, but that does not make JSON schema part of YANG.
D. XML schema YANG is its own modeling language. NETCONF commonly uses XML encoding, but XML schema itself is not one of the YANG language statements.
ENCOR exam point:
Know the difference between:
YANG model elements → container, list, leaf, rpc
Data encodings / transport formats → XML, JSON
Protocol behaviors → HTTP status codes, NETCONF operations