300-435 Question 231
Select 2A network engineer is using Cisco DNA Center's Intent APIs to automate the provisioning of network devices. However, the API call to 'v1/network-device' is returning an HTTP 401 Unauthorized error. Which of the following steps should the engineer take to troubleshoot and resolve the issue?
- A
Verify that the API token used in the request header is still valid.
- B
Check if the network device supports Cisco DNA Center integration.
- C
Ensure the API endpoint URL is correctly specified, including the API version.
- D
Confirm that the user account associated with the API token has the necessary permissions.
- E
Examine if the Cisco DNA Center is running the latest software version.
Show answer and explanation
Correct answers: A, D
Explanation
An HTTP 401 Unauthorized error indicates an issue related to authentication or authorization. The most likely causes are an expired or invalid API token or insufficient permissions assigned to the user account associated with the token. Troubleshooting these factors is key to resolving the problem. Other options, such as checking device compatibility or updating software, do not directly address the root cause of the error.
- A. Correct.
The HTTP 401 Unauthorized error often occurs when the API token has expired or is invalid. Verifying the token's validity is a key troubleshooting step.
- B. Incorrect.
While device compatibility is important, an HTTP 401 error is unrelated to device support. Device compatibility issues are more likely to result in other errors or failures.
- C. Incorrect.
An incorrectly specified endpoint URL would typically result in a different HTTP error, such as 404 Not Found, not an HTTP 401 Unauthorized error.
- D. Correct.
An HTTP 401 error can occur if the API token is associated with a user account that lacks sufficient permissions to access the requested resource.
- E. Incorrect.
While updating Cisco DNA Center software is generally good practice, it is unrelated to resolving an HTTP 401 error specifically caused by authorization issues.