exam questions

Exam 350-401 All Questions

View all questions & answers for the 350-401 exam

Exam 350-401 topic 1 question 345 discussion

Actual exam question from Cisco's 350-401
Question #: 345
Topic #: 1
[All 350-401 Questions]

An engineer runs the code against an API of Cisco DNA Center, and the platform returns this output. What does the response indicate?

  • A. The authentication credentials are incorrect.
  • B. The URI string is incorrect.
  • C. The Cisco DNA Center API port is incorrect.
  • D. The HTTP method is incorrect.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
due
Highly Voted 1 year, 2 months ago
Selected Answer: D
Point. not focus the coding, focus only Response 405. Some HTTP codes and their meanings; 200 = OK. 201 = Created. 400 = Bad Request. 401 = Unauthorized. 402 = Payment Required. 403 = Forbidden. 404 = Not found. 405 = Method Not Allowed.
upvoted 14 times
...
bogd
Highly Voted 2 years, 9 months ago
Selected Answer: A
Token request should be a POST request - see https://developer.cisco.com/docs/dna-center/#!authentication-and-authorization/endpoints-and-methods-used
upvoted 9 times
...
[Removed]
Most Recent 6 months ago
Selected Answer: D
D is correct 200 OK 201 Created 204 No Content 301 Moved Permanently 302 Found 304 Not Modified 400 Bad Request 401 Unauthorized 403 Forbidden 404 Not Found 405 Method Not Allowed 408 Request Timeout 409 Conflict 500 Internal Server Error 501 Not Implemented 502 Bad Gateway 503 Service Unavailable 504 Gateway Timeout
upvoted 2 times
...
Shri_Fcb10
6 months, 1 week ago
Selected Answer: D
In RESTful APIs, the 405 Method Not Allowed status code is commonly returned when the client attempts to use an HTTP method (such as POST, GET, PUT, DELETE, etc.) that is not permitted for the specified resource. For example, if a client sends a POST request to a resource that only allows GET requests, the server may respond with a 405 status code. So, a response status code of 405 indicates that the method used in the request is not supported for the specified resource.
upvoted 3 times
...
djedeen
1 year, 3 months ago
Selected Answer: D
The 405 Method Not Allowed is an HTTP response status code indicating that the server received and recognized the specified request HTTP method, but the server rejected that particular method for the requested resource. This code response confirms that the requested resource is valid and exists, but the client has used an ***unacceptable HTTP method*** during the request.
upvoted 3 times
...
myhdtv6
1 year, 4 months ago
The HyperText Transfer Protocol (HTTP) 405 Method Not Allowed response status code indicates that the server knows the request method, but the target resource doesn't support this method
upvoted 2 times
...
MMaris018
1 year, 7 months ago
Selected Answer: D
D is correct. It's error 401 if the credentials are incorrect
upvoted 4 times
...
Sammy3637
1 year, 9 months ago
Selected Answer: D
The HyperText Transfer Protocol (HTTP) 405 Method Not Allowed response status code indicates that the server knows the request method, but the target resource doesn't support this method.
upvoted 8 times
...
Dataset
1 year, 10 months ago
Selected Answer: A
In think A is correct Regards
upvoted 1 times
sinaghozati
1 year, 9 months ago
Invalid authentication credentials would return code 401
upvoted 1 times
...
...
milovnik1
1 year, 11 months ago
Selected Answer: D
D is correct Reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/405 Invalid authentication credentials would return code 401
upvoted 4 times
...
bora4motion
1 year, 12 months ago
Selected Answer: D
to me it looks like D is the answer.
upvoted 3 times
...
Caradum
1 year, 12 months ago
HTTP 405 = 'Method not allowed' = Answer D (A makes no sense. Wrong credentials are HTTP401)
upvoted 4 times
...
Wooker
2 years, 1 month ago
Selected Answer: D
The token request should be a POST request. The correct answer is D.
upvoted 3 times
...
Hugh_Jazz
2 years, 3 months ago
Selected Answer: D
405, Method not allowed is correct.
upvoted 3 times
...
Dreket
2 years, 4 months ago
Selected Answer: D
The answer is D. 405 Method Not Allowed The request method is known by the server but is not supported by the target resource. For example, an API may not allow calling DELETE to remove a resource. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
upvoted 3 times
...
pyrokar
2 years, 4 months ago
Selected Answer: D
405 Method Not Allowed
upvoted 2 times
...
bara_ken
2 years, 6 months ago
Selected Answer: D
This is D
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...