DevNet Associate (DEVASC) v1.0Infrastructure and AutomationEasy

A network engineer needs to programmatically configure a new QoS policy on a Cisco IOS XE router. The policy involves setting a new class map and applying a service policy to an interface. Which of the following data models is most appropriate for defining the structure and semantics of this configuration?

  1. AXML
  2. BYANG
  3. CYAML
  4. DJSON
Show answer & explanation

Correct answer: B. YANG

YANG (Yet Another Next Generation) is a data modeling language specifically designed for defining configuration and state data for network devices. It is widely used with NETCONF and RESTCONF for programmatic network management.

Why the other options are wrong

  • A. XML is a markup language for encoding data, but does not define the structure and semantics of network configurations itself.
  • C. YAML is a human-readable data serialization standard, but not a data modeling language for network device configurations.
  • D. JSON is a lightweight data-interchange format, but like XML, it doesn't define the underlying data model for network configurations.

YANG Data Model

YANG (Yet Another Next Generation) is a data modeling language used to define the structure, semantics, and constraints of configuration data, state data, RPCs, and notifications for network devices.

  • Defines schema for network configurations.
  • Used with NETCONF and RESTCONF.
  • Standardized by IETF.
  • Language-agnostic.

Memory trick: YANG models the NETwork's CONFiguration structure.

More Infrastructure and Automation questions