exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 53 discussion

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


Refer to the exhibit. This snippet of a script has recently started exiting abnormally with an exception stating `Unexpected HTTP Response code: 429`.
Which solution handles rate limiting by the remote API?
A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: D

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
Teringzooi
Highly Voted 7 months, 2 weeks ago
D is correct
upvoted 6 times
...
designated
Highly Voted 8 months, 3 weeks ago
It is missing the "response = requests.get(url)" on A, so the most correct answer is D.
upvoted 5 times
...
CiscoRider
Most Recent 12 months ago
On a second thought, answer D provides a bad implementation of rate-limiting, but will do the job of collecting the Retry-After value and make a new call, which is at the end what the question aims. It looks like D is correct, although I will chose a different code implementation for this mechanism.
upvoted 1 times
...
CiscoRider
12 months ago
Answer should be A. D is incorrect as I no see the point to create a second "response" variable to store the http call.
upvoted 1 times
bboycoi
11 months, 2 weeks ago
I think we need to retry after x seconds.
upvoted 2 times
MarvinY
10 months, 3 weeks ago
D is most correct one. The second response here is to complete the loop.
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