exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 398 discussion

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

Refer to the exhibit.



An engineer is developing a Python script to check if an API is live. If the API is not live, the script must evaluate the response code and either raise an exception or add the request to a queue for retry. Which code snippet must be placed in the blank in the code to complete the script?

  • A. if response.status_code ==200:
  • B. if response.status_code not in failure_codes:
  • C. if response.status_code in try_later_codes:
  • D. if response.status_code != 200:
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
jules237
2 weeks ago
Selected Answer: B
I'm voting for B.
upvoted 1 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 ...