Automation and Artificial Intelligence

Two management clients use the same YANG-modeled interface data, but one exchanges XML and the other JSON. What explains how both can follow the same model?

Show the answer

Correct answerC. YANG defines structure separately from data encoding.

AWhy not this: YANG defines a model; it does not itself translate messages between encodings.

BWhy not this: Different encodings can represent the same modeled data without replacing its schema.

CWhy this is right: The model defines data semantics and constraints independently of the representation used to exchange it.

DWhy not this: The model defines field meaning; the transport carries the encoded data.

YANG defines the data's structure, types, and constraints independently of its XML or JSON representation. YANG is not a message translator; encoding rules map modeled data into a particular representation.