ExamGecko
Question list
Search
Search

Related questions











Question 52 - 350-401 discussion

Report
Export

Refer to the exhibit.

What does the snippet of code achieve?

A.

It creates a temporary connection to a Cisco Nexus device and retrieves a token to be used for API calls.

Answers
A.

It creates a temporary connection to a Cisco Nexus device and retrieves a token to be used for API calls.

B.

It opens a tunnel and encapsulates the login information, if the host key is correct.

Answers
B.

It opens a tunnel and encapsulates the login information, if the host key is correct.

C.

It opens an ncclient connection to a Cisco Nexus device and maintains it for the duration of the context.

Answers
C.

It opens an ncclient connection to a Cisco Nexus device and maintains it for the duration of the context.

D.

It creates an SSH connection using the SSH key that is stored, and the password is ignored.

Answers
D.

It creates an SSH connection using the SSH key that is stored, and the password is ignored.

Suggested answer: C

Explanation:

ncclient is a Python library that facilitates client-side scripting and application development around the NETCONF protocol.

The above Python snippet uses the ncclient to connect and establish a NETCONF session to a Nexus device (which is also a NETCONF server).

asked 10/10/2024
Arvind Prasad S
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first