DevNet Associate (DEVASC) v1.0Cisco Platforms and DevelopmentHard

A network operator is tasked with automating routine configuration backups and software upgrades on a fleet of Cisco IOS XE routers. The operator wants to use a modern, programmatic approach that leverages standard data models for configuration and operational state. Which combination of protocol and data model would be most suitable for this task, providing reliable and structured interaction?

  1. ATelnet with CLI Scraping
  2. BSNMP with MIBs
  3. CTFTP for file transfer
  4. DRESTCONF with YANG
Show answer & explanation

Correct answer: D. RESTCONF with YANG

RESTCONF with YANG provides a modern, programmatic, and structured approach for managing IOS XE devices. YANG defines standardized data models for configuration and operational state, and RESTCONF exposes these models via a RESTful API over HTTPS, enabling reliable automation.

Why the other options are wrong

  • A. Telnet is insecure, and CLI scraping is brittle and error-prone for automation.
  • B. SNMP is older, less programmatic for full configuration management, and MIBs are not as flexible as YANG.
  • C. TFTP is for file transfer, not for programmatic configuration management or structured data interaction.

IOS XE RESTCONF/YANG

Cisco IOS XE supports RESTCONF, a RESTful HTTP-based protocol, to interact with network devices using YANG data models for configuration and operational data. This enables modern, programmatic automation and management.

  • YANG models define configuration and state data structures.
  • RESTCONF uses standard HTTP methods (GET, POST, PUT, DELETE).
  • Provides a robust alternative to CLI for automation.

Memory trick: REST easy with YANG, it's the modern way for IOS XE.

More Cisco Platforms and Development questions