nerdexam
Cisco

350-901 · Question #62

A developer has completed the implementation of a REST API, but when it is executed, it returns a 401 error message. What must be done on the API to resolve the issue?

The correct answer is B. Configure new valid credentials. The HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. This status is sent with a WWW-Authenticate header that contains information on how to…

Understanding and Using APIs

Question

A developer has completed the implementation of a REST API, but when it is executed, it returns a 401 error message. What must be done on the API to resolve the issue?

Exhibits

350-901 question #62 exhibit 1
350-901 question #62 exhibit 2

Options

  • AAccess permission to the resource must be granted, before the request.
  • BConfigure new valid credentials.
  • CThe requested API endpoint does not exist, and the request URL must be changed.
  • DAdditional permission must be granted before the request can be submitted.

How the community answered

(18 responses)
  • B
    94% (17)
  • D
    6% (1)

Explanation

The HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. This status is sent with a WWW-Authenticate header that contains information on how to authorize correctly. This status is similar to 403, but in this case, authentication is possible. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401

Topics

#REST API#HTTP Status Codes#Authentication#API Troubleshooting

Community Discussion

No community discussion yet for this question.

Full 350-901 Practice