300-420 exam dumps

300-420 practice question 297 of 323

Designing Cisco Enterprise Networks. Professional level, Cisco. Free question with the correct answer and a full explanation.

300-420 Question 297

Single answer

A 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?

  1. A

    NETCONF

  2. B

    RESTCONF

  3. C

    SNMP

  4. 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.

Timed practice exam

Take a 300-420 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam