300-420 Question 298
Single answerAn enterprise network engineer is evaluating two protocols, NETCONF and RESTCONF, for managing configuration and operational data on their network devices. The engineer requires a solution that uses a RESTful interface and supports accessing data in JSON format for integration with modern web-based management tools. Which protocol best meets this requirement?
- A
NETCONF
- B
RESTCONF
- C
Both NETCONF and RESTCONF
- D
Neither NETCONF nor RESTCONF
Show answer and explanation
Correct answer: B
Explanation
RESTCONF is the correct protocol for the scenario because it uses a RESTful interface and supports JSON encoding, making it compatible with modern web-based management tools. NETCONF, while powerful, primarily utilizes XML and does not follow RESTful design principles, making it less suitable for the stated requirements.
- A. Incorrect.
NETCONF is a protocol designed for network configuration and operational data management, but it primarily uses XML for data encoding and does not use a RESTful interface.
- B. Correct.
RESTCONF is a protocol that builds on REST principles and supports data encoding in formats like JSON and XML. This makes it suitable for integration with modern web-based tools as required in the scenario.
- C. Incorrect.
While both NETCONF and RESTCONF can manage configuration and operational data, only RESTCONF provides a RESTful interface and native JSON support, which are explicitly required in the scenario.
- D. Incorrect.
Both NETCONF and RESTCONF are capable protocols, but saying 'neither' is incorrect since RESTCONF clearly meets the specified requirements.