350-401 · Question #482
350-401 Question #482: Real Exam Question with Answer & Explanation
The correct answer is D: The HTTP method is incorrect. The API response indicates that the HTTP method used in the request, such as GET, POST, or PUT, is not supported by the specific Cisco DNA Center API endpoint that was accessed.
Question
An engineer runs the code against an API of Cisco DNA Center, and the platform returns this output. What does the response indicate?
Options
- AThe authentication credentials are incorrect
- BThe URL string is incorrect.
- CThe Cisco DNA Center API port is incorrect
- DThe HTTP method is incorrect
Explanation
The API response indicates that the HTTP method used in the request, such as GET, POST, or PUT, is not supported by the specific Cisco DNA Center API endpoint that was accessed.
Common mistakes.
- A. Incorrect authentication credentials would typically result in an HTTP 401 Unauthorized or 403 Forbidden status code, indicating a permissions issue rather than an improper method.
- B. An incorrect URL string usually leads to an HTTP 404 Not Found error, as the server cannot locate the specified resource path.
- C. An incorrect API port would likely cause a connection failure or timeout before the API server could even process the HTTP request and return an HTTP status code.
Concept tested. Cisco DNA Center API error handling (HTTP methods)
Reference. https://developer.cisco.com/docs/dna-center/#!rest-api-basics
Topics
Community Discussion
No community discussion yet for this question.