Automation and Artificial Intelligence

What is the primary purpose of a data modeling language such as YANG in network automation?

Show the answer

Correct answerA. To define the structure and semantics of configuration and state data in a standard way

AWhy this is right: YANG models describe the hierarchy, data types and constraints of configuration and state data in a vendor-neutral way.

BWhy not this: YANG does not provide a user interface; it defines data models that tools and APIs consume.

CWhy not this: Secure transport is the job of protocols such as NETCONF over SSH or RESTCONF over HTTPS, not the modeling language.

DWhy not this: Encoding is done by formats such as XML or JSON; YANG defines the model, not the serialization.

YANG is a data modeling language that describes the structure, types and constraints of configuration and operational data. Transport is handled by protocols such as NETCONF or RESTCONF, not by YANG itself.