exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 115 discussion

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

DRAG DROP -

Refer to the exhibit. Drag and drop the code snippets from the left onto the item numbers on the right that match the missing sections in the exhibit to complete the script to implement control flow.
Select and Place:

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
valbonarexhepi
Highly Voted 1 year, 9 months ago
<try> <except Exception as e> <requests.status_codes.codes.UNAUTHORIZED> <Authorization> <requests.status_codes.codes.SERVER_ERROR>
upvoted 24 times
...
examtopicstroilevw
Most Recent 1 month, 3 weeks ago
Answer: there are only 5 blanks, I hope there are only 5 on the real thing! 1. try 2. except Exception as e 3. request.status_codes.codes.UNAUTHORIZED 4. Authorization 5. request.status_codes.codes.SERVER_ERROR My rationale (in order i approached them): 1 and 2 look like a try except structure, especially if compare to the create_dnac_token() at the bottom of the screen 3 skipped, wasn't sure what was hapening here 4 Authorization would match Basic inside headers 5 looked like it could be two different things initially, went back to 3 3 figured that this was unauthorized, because the follow-on line wanted to create a token, and being unauthorized would be a valid reason to create a token 5 back to this one, i figured that it had to be a server error, simply because "service is not reachable" would fit with server error better than it could fit with "too many requests" as that would imply the service was still reachable and the follow-on code should have been related rate limiting.
upvoted 1 times
...
whipmuffin
5 months, 1 week ago
Why are there 6 items to fill in the questionnaire, when there are only 5 missing items in the code?
upvoted 2 times
...
ferock
1 year, 6 months ago
1. Try 2. except Exception as e 3. request.......UNAUTHORIZED 4. Authorization 5. request...........SERVER_ERROR
upvoted 3 times
...
udo2020
1 year, 9 months ago
My solution: 1. try 2. except... 3. 4. Authorization 5. SERVER_ERROR
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago