200-901 exam dumps

200-901 practice question 196 of 204

Cisco DevNet Associate. Associate level, Cisco. Free question with the correct answer and a full explanation.

200-901 Question 196

Select 3

A network engineer is tasked with retrieving the running configuration of a network device using the NETCONF protocol. The engineer writes a Python script utilizing the ncclient library. Which of the following elements are required to establish a successful NETCONF session with the device?

  1. A

    The hostname or IP address of the target device

  2. B

    The port number on which the NETCONF service is running

  3. C

    A REST API token for authentication

  4. D

    The username and password for the device

  5. E

    The YANG model file for the device configuration

Show answer and explanation

Correct answers: A, B, D

Explanation

To establish a NETCONF session using the ncclient library, you need the target device's hostname or IP address, the port number for the NETCONF service (usually 830), and valid authentication credentials (username and password or key-based). REST API tokens are irrelevant in this context, and YANG models are utilized later during data manipulation but are not required for session establishment.

  • A. Correct.

    The hostname or IP address is required to identify and connect to the target device.

  • B. Correct.

    The port number is needed to connect to the specific service running NETCONF, typically port 830.

  • C. Incorrect.

    REST API tokens are not used in NETCONF. Authentication for NETCONF typically relies on username/password or key-based mechanisms.

  • D. Correct.

    A valid username and password are required for authentication to establish a NETCONF session.

  • E. Incorrect.

    While YANG models define the structure of data used in NETCONF, they are not required to establish a session. They are used later for data manipulation or validation.

Timed practice exam

Take a 200-901 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