exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 121 discussion

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

DRAG DROP -

Refer to the exhibit. A developer is creating a Python script to use the Webex REST API to list joined spaces, retry after the server-specified amount of time if a
`Too many requests` response is received, and print any other error that is received. 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. Not all code snippets are used.
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
designated
Highly Voted 8 months ago
Agreed with the answer: 1. response.status_code 2. 429 3. response.headers['Retry-After'] 4. seconds
upvoted 6 times
...
examtopicstroilevw
Most Recent 1 month, 3 weeks ago
Answer: 1. response.status_code 2. 429 3. response.headers['Retry-After'] 4. seconds Rationale: 1. the status_code would give the status number. Notice that status is being compared to 200 in the very next line. 2. this is 429 because the code apears to be handling a potential rate limiting scenario. notice that the the question prompt is about 'too many requests, and this is the portion of the code attempting to handle that. 3. of the available answer choices, this one specifies 'retry after', notice that the goal of the code was to try after a certain amount of time. 4. I assumed that retry-after was seconds instead of minutes. I later looked it up to confirm. "Retry-After: <http-date> Retry-After: <delay-seconds>" <http-date> A date after which to retry. See the Date header for more details on the HTTP date format. <delay-seconds> A non-negative decimal integer indicating the seconds to delay after the response is received. https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After
upvoted 1 times
...
kapppa
9 months, 1 week ago
agree with this answer
upvoted 1 times
...
bboycoi
11 months, 3 weeks ago
Agree with the answer
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago