300-420 Question 297
Single answerA network engineer is tasked with automating the configuration of devices in an enterprise network. The engineer must choose between using NETCONF or RESTCONF for this task. If the engineer requires a protocol that uses XML encoding, supports full transaction capabilities, and provides native support for YANG models, which protocol should they choose?
- A
NETCONF
- B
RESTCONF
- C
SNMP
- D
gRPC
Show answer and explanation
Correct answer: A
Explanation
NETCONF and RESTCONF are both protocols used for network configuration and management, but they have key differences. NETCONF is XML-based and supports advanced features like full transaction capabilities, which makes it suitable for more complex configuration tasks. RESTCONF, on the other hand, offers a simpler REST-like approach, often using JSON or XML, but lacks some of the advanced capabilities of NETCONF. Given the requirements in the scenario, NETCONF is the better choice.
- A. Correct.
NETCONF is the correct choice as it uses XML encoding, supports full transaction capabilities (such as locking and rollback), and is designed to work natively with YANG data models.
- B. Incorrect.
RESTCONF is incorrect because, while it works with YANG models, it typically uses JSON or XML for encoding and does not offer the same level of transaction capabilities as NETCONF.
- C. Incorrect.
SNMP is incorrect as it is primarily used for monitoring and lacks the transaction and configuration capabilities provided by NETCONF or RESTCONF.
- D. Incorrect.
gRPC is incorrect as it is a general-purpose RPC framework that is not specifically designed for network configuration or YANG model integration.