Cisco
300-535 · Question #60
How does using the Python with statement in conjunction with ncclient manager improve an existing NETCONF automation script?
The correct answer is D. Use of the with statement catches any exceptions when trying to connect to a device using. See the full explanation below for the reasoning.
Question
How does using the Python with statement in conjunction with ncclient manager improve an existing NETCONF automation script?
Options
- AIt allows the NETCONF connection to the device to be gracefully closed without having to
- BIt manages the running configuration of the device by comparing it to the new configuration
- CThe with statement tries to connect to the device using TCP port 830 first but also tries to connect
- DUse of the with statement catches any exceptions when trying to connect to a device using
How the community answered
(17 responses)- B6% (1)
- C18% (3)
- D76% (13)
Community Discussion
No community discussion yet for this question.