exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 337 discussion

Actual exam question from Cisco's 350-401
Question #: 337
Topic #: 1
[All 350-401 Questions]


Refer to the exhibit. What does the snippet of code achieve?

  • A. It creates an SSH connection using the SSH key that is stored, and the password is ignored.
  • B. It creates a temporary connection to a Cisco Nexus device and retrieves a token to be used for API calls.
  • C. It opens an ncclient connection to a Cisco Nexus device and maintains it for the duration of the context.
  • D. It opens a tunnel and encapsulates the login information, if the host key is correct.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
gtddrf
Highly Voted 3 years, 2 months ago
Correct Answer: C ncclient is a Python library that facilitates client-side scripting and application development around the NETCONF protocol. The Python snippet uses the ncclient to connect and establish a NETCONF session to a Nexus device (which is also a NETCONF server).
upvoted 6 times
...
[Removed]
Most Recent 6 months ago
Selected Answer: C
C is correct
upvoted 1 times
...
kthekillerc
3 years, 2 months ago
Provided answer is correct
upvoted 2 times
...
AliMo123
3 years, 6 months ago
A is correct Connect via SSH and initialize the NETCONF session. First attempts the publickey authentication method and then password authentication. To disable attempting publickey authentication altogether, call with allow_agent and look_for_keys as False. host is the hostname or IP address to connect to port is by default 830 (PORT_NETCONF_DEFAULT), but some devices use the default SSH port of 22 so this may need to be specified https://ncclient-fredgan.readthedocs.io/_/downloads/en/sphinx_version/pdf/
upvoted 3 times
Jared28
2 years, 5 months ago
A states it *ignores* the password. The info you provided simply states it occurs after.
upvoted 2 times
...
...
[Removed]
3 years, 6 months ago
The given answer is correct
upvoted 3 times
RexChen
3 years, 5 months ago
https://github.com/ADTRAN/ncclient/blob/d665bde4208b9bf83a472b59f29cc44ea481eecb/ncclient/transport/ssh.py
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...