Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Cisco logo

CiscoCertified DevNet Professional

Domain 2Objective 2

Implement Control Flow of Consumer Code for Unrecoverable REST API Errors 350-901 Practice Questions (Page 4)

Part of the 2.0 Using APIs domain, which accounts for 20% of the 350-901 exam. Cisco does not publish an official question count, but from its 120-minute exam (~50–80 total, ~10–16 in this domain), expect 2–3 from this objective — we provide 25 practice questions to prepare you well beyond it. (estimate)

25questions here
5free pages
4concepts
20%of the exam

Questions 16–20

  1. 16foundation · easy

    Which HTTP status code most clearly indicates an unrecoverable REST API error that should not be retried?

    Select an answer first
  2. 17foundation · easy

    Which code snippet uses a conditional statement to handle an unrecoverable REST API error?

    Select an answer first
  3. 18application · medium

    A Python script uses the Webex Teams API to create a room and then posts a message to it. The script receives an HTTP 404 Not Found when posting the message, even though the room creation returned a 201. The room ID in the message payload is hardcoded. What control flow should the script implement?

    Select an answer first
  4. 19expert · hard

    A Python script uses the requests library to call the Cisco SD-WAN vManage API. The script needs to handle three error types differently: 401 (token expired), 404 (resource not found), and 503 (service unavailable). The developer wants to use a single try/except block with a custom exception hierarchy. Which control flow design is most maintainable?

    Select an answer first
  5. 20expert · hard

    A developer is writing a Python function that calls the Cisco DNA Center API to retrieve a device's configuration. The function must handle the case where the device is not found (HTTP 404) by returning None, and the case where the API is rate-limiting (HTTP 429) by retrying. The developer wants to avoid using exceptions for control flow. Which approach is most appropriate?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Cisco. “350-901” is a trademark of its owner, used for identification only.