200-901 Question 76
Select 3A network engineer is tasked with automating a Cisco IOS XE router configuration. The engineer decides to use RESTCONF to interact with the router. Which of the following actions are valid use cases for RESTCONF in this scenario?
- A
Retrieve the current interface configuration in JSON or XML format
- B
Push a new configuration to enable a specific interface
- C
Execute a CLI command to reboot the device
- D
Subscribe to notifications about interface state changes
- E
Modify the NX-OS feature set of the router
Show answer and explanation
Correct answers: A, B, D
Explanation
RESTCONF is a device-level API used for interacting with Cisco IOS XE devices. It enables operations like retrieving configuration data, pushing new configurations, and subscribing to notifications. However, it is not meant for executing arbitrary CLI commands or interacting with NX-OS-specific features, as NX-OS and IOS XE are distinct platforms with different capabilities.
- A. Correct.
Correct: RESTCONF supports retrieving operational data or configuration data in JSON or XML format through HTTP GET requests.
- B. Correct.
Correct: RESTCONF allows pushing new configurations to the device using HTTP POST or PUT requests.
- C. Incorrect.
Incorrect: RESTCONF is not designed to execute arbitrary CLI commands; it is used for configuration and operational data management.
- D. Correct.
Correct: RESTCONF supports subscribing to notifications (using the
ietf-restconfmodule) for monitoring events like interface state changes. - E. Incorrect.
Incorrect: NX-OS is a different Cisco operating system and RESTCONF in this context is specific to IOS XE. Modifying the NX-OS feature set would not apply here.