exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 120 discussion

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

DRAG DROP -

Refer to the exhibit. The self-service Webex bot is failing when many users attempt to interact with it at the same time. Drag and drop the code snippets from the left onto the correct item numbers on the right that match the missing sections in the exhibit to complete this code to handle this high-load situation.
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
wunderup
Highly Voted 4 years, 5 months ago
correct answer should be following: Item 1 = 429 Item 2 = RETRIES Item 3 = backoff Item 4 = backoff Item 5 = i
upvoted 60 times
...
Billybob83400
Most Recent 7 months, 1 week ago
Nothing make sense to me in this code, can someone explain please ? response.status_code shouldn't be == to 429 ? what is the point regarding i = 0 ? Thanks !!
upvoted 1 times
examtopicstroilevw
1 month, 3 weeks ago
I believe this exam assumes you have Python basics down pat. If that is not the case, then you can probably find plenty of free Python courses out there that cover the basics. (freecodecamp or similar sites) Questions like this would be significantly easier, afterwards.
upvoted 1 times
...
examtopicstroilevw
1 month, 3 weeks ago
Answer: 1. 429 2. RETRIES 3. backoff 4. backoff 5. i Rationale: 1. if it's not a 429, we know we're not rate-limited [the question prompt is about failing when too many users attempt it at the same time]. so if it's not a 429, we're OK [not always true, but for purposes of this code we are] 2. if we hit the RETRIES number, we should give the response 3. backoff goes here, as we'd sleep for the backoff time period 4. backoff goes here, so we have an exponential backoff [doubles each interval] 5. i goes here, and i is incremented by 1 each run through you asked about i = 0 is is being used as a counter. we increment i each run through the code, until it hits 6, which is our RETRIES value. thus, you can say if i = RETRIES, then you want to exit the loop. if you're wondering where i would be incremented, you see the i += 1, at the bottom of the code. Hope this explanation makes sense. Sample code to illustrate why i = 0 in the code. i = 0 while True: print(i) i += 1 if i == 10: # Replace 10 with your desired upper limit break
upvoted 1 times
...
...
designated
2 years, 2 months ago
1. 429 2. RETRIES (6) 3. backoff (=1) 4. backoff (=2) 5. i (=1)
upvoted 2 times
...
ferock
2 years, 6 months ago
1. 429 2. RETRIES 3. backoff 4. backoff 5. i
upvoted 2 times
...
kakonyib
3 years, 1 month ago
Agree with wunderup!
upvoted 2 times
...
FR99
4 years, 2 months ago
Agree with wunderup's answer
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