200-901 Question 82
Select 3You are tasked with configuring a network device using model-driven programmability. The device supports YANG models and provides both NETCONF and RESTCONF interfaces. Which of the following statements correctly describe how you can interact with the device using these protocols?
- A
NETCONF uses XML as its primary data encoding format for configuration and operational data.
- B
RESTCONF can use both JSON and XML as data encoding formats for interacting with the device.
- C
YANG is a protocol used to directly configure the device via CLI commands.
- D
RESTCONF operations are built on top of HTTP methods such as GET, POST, PUT, and DELETE.
- E
NETCONF operations are executed using HTTP methods like GET and POST.
Show answer and explanation
Correct answers: A, B, D
Explanation
NETCONF and RESTCONF are two protocols that leverage YANG data models for device interaction. NETCONF uses XML exclusively for data encoding and operates over SSH with its own set of operations. RESTCONF, on the other hand, is built on HTTP and supports both JSON and XML for data encoding, making it more accessible for RESTful API interactions. YANG is the underlying modeling language, not a protocol, and does not directly configure devices.
- A. Correct.
Correct: NETCONF uses XML as its primary data encoding format. It is designed for robust network configuration and operational data exchange.
- B. Correct.
Correct: RESTCONF supports both JSON and XML as data encoding formats, allowing for flexibility in how data is transmitted.
- C. Incorrect.
Incorrect: YANG is not a protocol but a data modeling language used to define the structure and content of configuration and operational data.
- D. Correct.
Correct: RESTCONF relies on standard HTTP methods such as GET, POST, PUT, and DELETE for interacting with network devices.
- E. Incorrect.
Incorrect: NETCONF does not use HTTP methods. It operates over a secure transport (like SSH) and defines its own set of operations such as
, , and .