Drag and drop the code from the bottom onto the box where the code is missing to stop the REST API requests if a “Too Many Requests” response is received. Not all options are used.
Literally any of the three numbers will work. You can eliminate 429 as it's already used (assuming that it won't let you use a block more than once). 440 is a login timeout error, so I think I'd choose 10 if those are the options provided. Hopefully the question isn't really this dumb on the exam.
from: https://docs.python.org/3/library/random.html
random.random()
Return the next random floating point number in the range 0.0 <= X < 1.0
"random.random()" is wrong
mariodevx is correct that random.random() will return a float. But Python won't choke on it, it still works:
>>> import random
>>> import time
>>> random.random()
0.3669229981594262
>>> random.random()
0.947150630490912
>>> 2**1 + random.random()
2.347214479111156
>>> time.sleep(2**1 + random.random())
>>>
First two options are definitely correct, although I can't see why the last one is "random.random()" as opposed to 10, or even 440 for that matter. I think the code is correct either way, but I guess the random.random() option is just "more correct" according to Cisco
This section is not available anymore. Please use the main Exam Page.350-901 Exam Questions
Log in to ExamTopics
Sign in:
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.
jchutch2
6 days, 2 hours agomariodevx
8 months, 3 weeks agokirrim
8 months, 2 weeks agoThePokemonNuzlockingMaster
1 year agolznlxl
1 year, 5 months ago