Free Cisco 350-901 Actual Exam Questions - Question 10 Discussion

Question No. 10Drag & Drop

DRAG DROP A developer is creating a Python script to analyze errors during REST API call operations. The script will be used with Cisco solution and devices. Drag and drop the code from the bottom to the box where the code is missing to implement control flow for handling unrecoverable REST API calls. Not all options are used. 350-901 practice exam questions

Options
Aresponse.status == 403
Bresponse.status_code == 200
Cresponse.status_code = 403
Dsys.exit(0)
Esys.exit(1)
Fresponse.status == 200
Drag an item to a target. Click × to remove.
Answer Area
Target 1
Drop item here
Target 2
Drop item here
Target 3
Drop item here
Target 4
Drop item here
US
BL
Bilal L.
2026-02-16

I’m seeing this more as a question about proper error escalation. The goal is to catch unrecoverable API call failures and stop the process cleanly. So, the code that does a try-except block and then raises the exception again or exits seems right. Anything that just logs without halting could cause hidden issues downstream. Also, silently retrying or ignoring errors doesn’t align with handling unrecoverable states effectively.

0
KK
Kevin K.
2026-02-09

I think the key is focusing on how the script should behave when it hits an unrecoverable error. The snippet that just retries endlessly or swallows errors won’t fit. So, the code that raises an exception or logs then exits makes more sense. Also, since it’s about REST API calls, handling HTTP status codes like 4xx or 5xx errors explicitly seems right. So the snippet that inspects the response and immediately stops or raises an error aligns best with the idea of controlling flow for unrecoverable conditions.

0
KK
Kevin K.
2026-01-29

I chose the snippet that logs the error and exits, fits unrecoverable error handling best.

0
TB
Tom B.
2026-01-20

I picked the snippet that checks for HTTP errors and raises exceptions since unrecoverable errors usually come from bad status codes. It fits the flow where the code needs to stop or retry based on those errors.

0
BL
Bilal L.
2026-01-17

This question seems kinda unclear, not sure which code snippet fits best. I’m guessing the one handling HTTP error status codes to catch unrecoverable errors, but not 100%. What'd you guys pick?

0