350-401 Question 329
Single answerA network engineer is using Cisco DNA Center's REST API to retrieve device information. The API request returns a response code of 404 with the following payload: {'error': 'Device not found'}. What does this response indicate, and what should the engineer verify to resolve the issue?
- A
The request was successful, but the device is not present in the database.
- B
The API endpoint is incorrect or the resource does not exist.
- C
The API request lacks proper authentication credentials.
- D
The server is temporarily unavailable or experiencing an error.
Show answer and explanation
Correct answer: B
Explanation
A 404 response code in a REST API interaction indicates that the requested resource or endpoint could not be found. In this scenario, the engineer should verify the correctness of the API endpoint or resource ID in the request. This is a common issue when using Cisco DNA Center REST APIs, as incorrect endpoint URLs or resource identifiers can lead to such errors.
- A. Incorrect.
Incorrect. A 404 response code indicates that the requested resource could not be found, not that the request was successful.
- B. Correct.
Correct. An HTTP 404 error means the requested API endpoint or resource does not exist. The engineer should verify the endpoint or resource ID in the request.
- C. Incorrect.
Incorrect. Authentication issues would typically result in a 401 (Unauthorized) or 403 (Forbidden) response code, not a 404 error.
- D. Incorrect.
Incorrect. Server availability issues would typically result in a 500-series response code, such as 503 (Service Unavailable), not a 404 error.