300-435 Question 80
Single answerYou are tasked with automating the management of an IOS XE device in your network. You need to retrieve operational data such as interface statistics using a structured data model. Which method would you use to achieve this?
- A
Use the NETCONF protocol with YANG data models
- B
Log in to the device via SSH and execute CLI commands
- C
Use SNMP to poll the device for interface statistics
- D
Access the device's HTTP server and parse the web interface
Show answer and explanation
Correct answer: A
Explanation
NETCONF combined with YANG data models enables modern, structured automation of IOS XE devices. It allows you to programmatically retrieve operational data, such as interface statistics, in a standardized way that is ideal for automation use cases. Other methods, while possible, are less efficient, less structured, or unreliable.
- A. Correct.
NETCONF with YANG data models is the recommended approach for structured, programmable interaction with IOS XE devices. It supports retrieving operational data in a standardized format.
- B. Incorrect.
Using SSH and CLI commands can retrieve data, but the output is unstructured and not ideal for automation. Parsing CLI output is error-prone and less efficient.
- C. Incorrect.
SNMP can retrieve interface statistics but is not as robust or structured as NETCONF with YANG models. It also lacks the flexibility of modern automation frameworks.
- D. Incorrect.
Parsing the web interface of a device is not a standard or recommended approach for automating IOS XE devices. It is unreliable and prone to breaking.