nerdexam
Cisco

350-901 · Question #30

Refer to the exhibit. The self-service Webex Teams 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 numb

Sign in or unlock 350-901 to reveal the answer and full explanation for question #30. The question stem and answer options stay visible for context.

Using APIs

Question

Refer to the exhibit. The self-service Webex Teams 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. Code Exhibit:
RETRIES = 6
i = 0
backoff = 1

while True:
 try:
 response = requests.request(*args, **kwargs)
 response.raise_for_status()
 return response
 except Exception as e:
 if (response.status_code != <item 1>) or i == <item 2>:
 return response

 time.sleep(<item 3>)
 <item 4> *= 2
 <item 5> += 1
Available Snippets from Answer Area: 429, i, backoff, backoff, RETRIES

Exhibit

350-901 question #30 exhibit

Unlock 350-901 to see the answer

You've previewed enough free 350-901 questions. Unlock 350-901 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#API Error Handling#Rate Limiting#Retry Logic#Exponential Backoff
Full 350-901 Practice