exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 39 discussion

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

A developer has completed the implementation of a REST API, but when it is executed, it returns a 401 error message.
What must be done on the API to resolve the issue?

  • A. Access permission to the resource must be granted, before the request.
  • B. Configure new valid credentials.
  • C. The requested API endpoint does not exist, and the request URL must be changed.
  • D. Additional permission must be granted before the request can submitted.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
newtoaws
Highly Voted 3 years ago
I think answer should be B. 401 is for unauthenticated, A and D are similar and related to authorization
upvoted 15 times
...
TechBrain
Highly Voted 2 years, 6 months ago
Answer is B. 401 is "unauthorized": authentication incorrect or missing A & D are for 403 "Forbidden" C is for 404 "Not found"
upvoted 10 times
...
routeswitch
Most Recent 3 days, 20 hours ago
Selected Answer: B
answer should be b
upvoted 1 times
...
Teringzooi
8 months, 3 weeks ago
Selected Answer: B
B is correct 401 = unauthorized": authentication incorrect or missing
upvoted 1 times
...
designated
10 months, 3 weeks ago
Selected Answer: B
The correct answer is B 401 is related to unauthenticated while 403 is related to unauthorized.
upvoted 1 times
...
QuiShong
12 months ago
Selected Answer: B
B. 401 means that the request is unauthenticated. 403 would mean that you are authenticated, but don't have the permissions (unauthorized).
upvoted 2 times
...
ferock
1 year, 1 month ago
B 401 Unauthorized: Authentication is required (API key, API token, or username and password). If the API was previously accessible, be aware that keys and tokens can expire, and usernames and passwords can be changed. - 403 Forbidden: You are authenticated and authorized but do not have the permission to access the resource.
upvoted 3 times
...
__al__
1 year, 2 months ago
Selected Answer: B
HTTP 401 response: the client request has not been completed because it lacks valid authentication credentials for the requested resource
upvoted 2 times
...
__al__
1 year, 2 months ago
Selected Answer: B
Messy question... badly written. All options seem incorrect somehow, but B looks like the least incorrect of them all.
upvoted 3 times
...
rhmgh
1 year, 4 months ago
Very confusing question: If the request included authentication credentials, then the 401 response indicates that authorization has been refused for those credentials. The user agent MAY repeat the request with a new or replaced Authorization header field (Section 4.2). If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user agent SHOULD present the enclosed representation to the user, since it usually contains relevant diagnostic information.
upvoted 1 times
...
garcesdavid88
1 year, 8 months ago
Answer is B 401 Unauthorized: Authentication is required (API key, API token, or username and password). If the API was previously accessible, be aware that keys and tokens can expire, and usernames and passwords can be changed
upvoted 1 times
...
Npirate
1 year, 10 months ago
I would go with B but it's a weird question as you do not know if additional rights are needed. It can be that the account works but needs additional rights configuring new credentials will not solve the issue if the underlaying issue isn't resolved. Again a great Cisco exam question.
upvoted 1 times
...
san111
2 years, 8 months ago
B https://airbrake.io/blog/http-errors/401-unauthorized-error
upvoted 1 times
...
FR99
2 years, 9 months ago
I go with 'B'
upvoted 3 times
...
FR99
2 years, 9 months ago
"The HTTP 401 Unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource. This status is sent with a WWW-Authenticate header that contains information on how to authorize correctly. This status is similar to 403, but in this case, authentication is possible." https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401
upvoted 4 times
...
FR99
2 years, 11 months ago
401 Unauthorized The request requires user authentication.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago