Cisco Developing Applications using Cisco Core Platforms and APIs (DEVCOR) 350-901 Question # 13 Topic 2 Discussion

Cisco Developing Applications using Cisco Core Platforms and APIs (DEVCOR) 350-901 Question # 13 Topic 2 Discussion

350-901 Exam Topic 2 Question 13 Discussion:
Question #: 13
Topic #: 2

Refer to the exhibit.

350-901 Question 13

A network engineer needs to handle API errors in their requests when users do not have permission to access the resource, even if they are authenticated and authorized. Which line of code needs to be placed on the snippet where the code is missing to handle these API errors?


A.

if r.status_code == 403


B.

il if r.raise for status() == 403


C.

if r.raise for_status() = 401


D.

if r.status_code = 401


Get Premium 350-901 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.