300-435 Question 61
Single answerAn enterprise network engineer is tasked with automating the configuration of network devices. The engineer is deciding between using NETCONF or RESTCONF for this purpose. Considering the following requirements: support for XML-based data encoding, programmatic configuration changes, and compatibility with YANG models, which protocol should the engineer prioritize and why?
- A
NETCONF, because it supports XML encoding and provides robust capabilities for configuration changes.
- B
RESTCONF, because it uses REST principles and supports JSON encoding for simplified data handling.
- C
NETCONF, because it is more lightweight and uses HTTP methods for communication.
- D
RESTCONF, because it is specifically designed to replace NETCONF entirely in modern networks.
Show answer and explanation
Correct answer: A
Explanation
NETCONF is the ideal choice in this scenario because it supports XML-based encoding (a key requirement), programmatic configuration, and is fully compatible with YANG models. While RESTCONF is an alternative for modern networks, it primarily leverages JSON and REST principles, which do not align with the stated requirements here. Therefore, NETCONF is the protocol that best meets the engineer's needs.
- A. Correct.
NETCONF supports XML encoding, programmatic configuration changes, and is fully compatible with YANG models, making it a robust choice for the engineer's requirements.
- B. Incorrect.
RESTCONF does support JSON encoding and uses REST principles, but it does not natively rely on XML encoding, which is a stated requirement in this scenario.
- C. Incorrect.
NETCONF is not considered lightweight compared to RESTCONF, as it uses SSH as its transport and does not utilize RESTful HTTP methods.
- D. Incorrect.
RESTCONF is not designed to replace NETCONF entirely; instead, it complements NETCONF by offering a simpler, RESTful approach for specific use cases.