Developing Applications Using Cisco Core Platforms and APIs (DEVCOR) — Question 6
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?
Answer options
- A. Access permission to the resource must be granted, before the request.
- B. Configure new valid credentials.
- C. The requested API endpoint does not exist, and the request URL must be changed.
- D. Additional permission must be granted before the request can submitted.
Correct answer: B
Explanation
The 401 error indicates that authentication is required and that the credentials provided are either missing or invalid. Configuring new valid credentials (option B) is the correct solution to resolve this issue. The other options either address permissions or endpoint issues, which are not the cause of a 401 error.