300-435 Question 64
Select 3You are automating the configuration of multiple Cisco network devices in your enterprise network. To ensure consistency and scalability, you decide to use a Python script to push configurations via RESTCONF. Which of the following steps are required to successfully establish a RESTCONF connection and push configurations to the devices?
- A
Enable the RESTCONF feature on the Cisco devices.
- B
Generate a JSON Web Token (JWT) for authentication.
- C
Ensure the devices support RESTCONF and have the appropriate YANG models installed.
- D
Use the POST method to retrieve the current configuration from the devices.
- E
Configure an HTTP/HTTPS server on the devices for RESTCONF communication.
Show answer and explanation
Correct answers: A, C, E
Explanation
To use RESTCONF for network device programmability, the RESTCONF feature must be enabled, the devices must support RESTCONF with the appropriate YANG models installed, and an HTTP/HTTPS server must be configured on the devices. These steps ensure that the devices are prepared to accept RESTCONF requests from your automation scripts.
- A. Correct.
RESTCONF must be enabled on the Cisco devices to use it for programmability. Without enabling this feature, the device will not respond to RESTCONF requests.
- B. Incorrect.
RESTCONF does not natively require the use of JWT for authentication. Typically, RESTCONF uses basic authentication or certificates for secure communication.
- C. Correct.
The devices must support RESTCONF and have the necessary YANG models installed. YANG models define the data structure and operations available for RESTCONF.
- D. Incorrect.
The POST method is used to create or update configurations, not to retrieve them. To retrieve the current configuration, the GET method should be used instead.
- E. Correct.
An HTTP/HTTPS server must be configured on the devices to facilitate RESTCONF communication. RESTCONF relies on HTTP/HTTPS as the transport protocol.