200-901 Question 81
Select 3A network engineer wants to retrieve the configuration of an interface on a network device using model-driven programmability. They decide to use NETCONF for this purpose. Which of the following steps are necessary to achieve this goal?
- A
Establish a secure connection to the device using SSH.
- B
Use YANG models to structure the data being requested or configured.
- C
Send an HTTP GET request to the device to retrieve the interface configuration.
- D
Send an XML-encoded RPC message to the device over the established connection.
- E
Install a RESTCONF service on the network device to enable communication.
Show answer and explanation
Correct answers: A, B, D
Explanation
NETCONF is a protocol used for model-driven programmability and operates over a secure SSH connection. It uses YANG models to define the structure of data and communicates using XML-encoded RPC messages. This makes options 1, 2, and 4 correct. HTTP GET requests and RESTCONF services are specific to RESTCONF and not relevant to NETCONF.
- A. Correct.
NETCONF relies on SSH as its transport protocol to establish a secure connection with the device. This is a required first step.
- B. Correct.
YANG is the language used to define the structure of the data model for NETCONF operations. It is essential for defining the data being retrieved or configured.
- C. Incorrect.
HTTP GET requests are used in RESTCONF, not NETCONF. NETCONF uses XML-based RPC messages for communication.
- D. Correct.
NETCONF uses XML-encoded RPC messages to retrieve or modify configurations. This is a necessary step for using NETCONF.
- E. Incorrect.
Installing a RESTCONF service is not relevant to NETCONF. RESTCONF is a separate protocol that also uses YANG models but operates over HTTP.