300-435 Question 100
Single answerA network engineer is tasked with automating the retrieval of configuration data from a Cisco device using RESTCONF. The engineer must access the running configuration of the device securely. Which URI should the engineer use to accomplish this task?
- A
https://
/restconf/data/Cisco-IOS-XE-native:native/running-config - B
https://
/restconf/data/Cisco-IOS-XE-native:native - C
http://
/restconf/data/Cisco-IOS-XE-native:native/running-config - D
https://
/restconf/operations/Cisco-IOS-XE-native:native/get-config
Show answer and explanation
Correct answer: B
Explanation
RESTCONF is a RESTful API used to access and modify configuration and operational data on network devices. To retrieve the running configuration, the correct URI must include the module and container structure (e.g., 'Cisco-IOS-XE-native:native') and must use HTTPS for secure communication. The correct answer adheres to these requirements.
- A. Incorrect.
This option is incorrect because the URI includes 'running-config,' which is not a valid RESTCONF resource path. RESTCONF does not use 'running-config' in the URI; instead, the configuration data is accessed via the module and container structure.
- B. Correct.
This is the correct answer because the URI follows the RESTCONF structure for accessing configuration data. It uses HTTPS for secure communication, and the path specifies the 'Cisco-IOS-XE-native' module and the 'native' container, which corresponds to the running configuration.
- C. Incorrect.
This option is incorrect because it uses HTTP instead of HTTPS. RESTCONF requires HTTPS to ensure secure communication with the network device.
- D. Incorrect.
This option is incorrect because RESTCONF does not use 'operations' in the URI for accessing configuration data. The 'operations' resource is used for invoking RPCs or actions, not for retrieving configurations.