300-435 Question 277
Select 2You are troubleshooting a Cisco SD-WAN deployment and need to verify the status of the control connections using vManage APIs. You send a GET request to the /device/control/connections endpoint but receive an HTTP 401 Unauthorized response. What could be the most likely issues causing this error?
- A
The API token used in the request is expired or invalid.
- B
The vManage server is currently down or unreachable.
- C
The user account associated with the API request lacks sufficient permissions.
- D
The requested endpoint
/device/control/connectionsdoes not exist on the vManage API. - E
The API request is missing the required Content-Type header.
Show answer and explanation
Correct answers: A, C
Explanation
An HTTP 401 Unauthorized response indicates an authentication or authorization issue. The most likely causes in this scenario are either an expired or invalid API token or insufficient permissions for the user account associated with the request. Other issues, such as server unavailability or incorrect endpoints, would result in different HTTP status codes.
- A. Correct.
An expired or invalid API token is a common cause of an HTTP 401 Unauthorized response, as the server cannot authenticate the request.
- B. Incorrect.
If the vManage server were down or unreachable, the response would typically be an HTTP 503 or timeout error, not a 401 Unauthorized.
- C. Correct.
Insufficient permissions for the user account could result in an HTTP 401 Unauthorized response, as the server denies access to the resource.
- D. Incorrect.
If the endpoint did not exist, the server would likely return an HTTP 404 Not Found error instead of a 401 Unauthorized.
- E. Incorrect.
While the Content-Type header is important for API requests, its absence typically results in an HTTP 415 Unsupported Media Type error, not a 401 Unauthorized.