exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 335 discussion

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

DRAG DROP
-

Drag and drop the code snippets from the bottom onto the blanks in the code for a Python application that needs to connect to Cisco DNA Center and then query the application for the inventory of devices on the network. The application must be resilient and ensure that it has the proper timeouts defined in the code. If a connection cannot be established to Cisco DNA Center within 5 seconds, the application should be terminated. Not all options are used.

Show Suggested Answer Hide Answer
Suggested Answer:

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
ThePokemonNuzlockingMaster
Highly Voted 1 year, 1 month ago
Agree with SzClar, it's 1. requests 2. get 3. Timeout Otherwise, what's the point of importing the Timeout module at the start?
upvoted 10 times
Pecoto
1 year ago
I still think is ConnectionError as is catch all option for type of error can occure
upvoted 3 times
...
...
SzClar
Most Recent 1 year, 2 months ago
1.requests 2.get 3.Timeout (https://stackoverflow.com/questions/16511337/correct-way-to-try-except-using-python-requests-module)
upvoted 3 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 ...