exam questions

Exam 350-901 All Questions

View all questions & answers for the 350-901 exam

Exam 350-901 topic 1 question 51 discussion

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

A client is written that uses a REST API to interact with a server. Using HTTPS as the transport, an HTTP request is sent and received an HTTP response. The response contains the HTTP response status code: 503 Service Unavailable.
Which action is the appropriate response?

  • A. Add an Authorization header that supplies appropriate credentials and sends the updated request.
  • B. Resend the request using HTTP as the transport instead of HTTPS.
  • C. Add an Accept header that indicates the content types that the client understands and send the updated request.
  • D. Look for a Retry-After header in the response and resend the request after the amount of time indicated.
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
sany4o
Highly Voted 3 years, 11 months ago
correct answer D
upvoted 11 times
...
newtoaws
Highly Voted 3 years, 12 months ago
I think answer should be D 503 could be server down or unable to handle the request, it is server side issue, not client side, other options are all trying to modify on client side
upvoted 8 times
...
kirrim
Most Recent 6 months, 1 week ago
Selected Answer: D
https://www.rfc-editor.org/rfc/rfc9110.html#name-503-service-unavailable " The 503 (Service Unavailable) status code indicates that the server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. The server MAY send a Retry-After header field (Section 10.2.3) to suggest an appropriate amount of time for the client to wait before retrying the request. Note: The existence of the 503 status code does not imply that a server has to use it when becoming overloaded. Some servers might simply refuse the connection. "
upvoted 2 times
...
johntermlen
9 months, 1 week ago
Selected Answer: D
The correct answer is D. Look for a Retry-After header in the response and resend the request after the amount of time indicated. A 503 Service Unavailable error code indicates that the server is temporarily unavailable. This could be due to a number of reasons, such as the server being overloaded or undergoing maintenance. The Retry-After header indicates how long the client should wait before retrying the request.
upvoted 1 times
...
Safinok
1 year, 7 months ago
Absolut D. The Retry-After response HTTP header indicates how long the user agent should wait before making a follow-up request. There are three main cases this header is used: When sent with a 503 (Service Unavailable) response, this indicates how long the service is expected to be unavailable. When sent with a 429 (Too Many Requests) response, this indicates how long to wait before making a new request. When sent with a redirect response, such as 301 (Moved Permanently), this indicates the minimum time that the user agent is asked to wait before issuing the redirected request.
upvoted 1 times
...
Teringzooi
1 year, 7 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
designated
1 year, 8 months ago
Selected Answer: D
The correct answer is D. The server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. Note that together with this response, a user-friendly page explaining the problem should be sent. This response should be used for temporary conditions and the Retry-After HTTP header should, if possible, contain the estimated time before the recovery of the service. The webmaster must also take care of the caching-related headers that are sent along with this response, as these temporary condition responses should usually not be cached.
upvoted 1 times
...
mairo3000
2 years, 2 months ago
Selected Answer: D
Also go with D
upvoted 1 times
...
strongcloud
2 years, 8 months ago
D is my answer. See https://httpstatuses.com/503 , which states "The server MAY send a Retry-After header field to suggest an appropriate amount of time for the client to wait before retrying the request." This is referenced from rfc7231
upvoted 1 times
...
Lala26
3 years, 2 months ago
Clear B. From https://en.wikipedia.org/wiki/List_of_HTTP_status_codes: 503 Service Unavailable The server cannot handle the request (because it is overloaded or down for maintenance). Generally, this is a temporary state.[66] So there is nothing A,C,D related. The only thing you can try is http instead of https, as it is another sevrice.
upvoted 2 times
Lala26
3 years, 1 month ago
Moreover, "Retry-After" comes in a 429 message, not in an 503.
upvoted 1 times
Yunsung
3 years, 1 month ago
Disagree, a server returning an error code 503 can populate the "Retry-After" field too, with an estimate time before service back online => https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Retry-After
upvoted 5 times
...
...
...
blezzzo
3 years, 8 months ago
D Explanation: The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded. This response should be used for temporary conditions and the Retry-After HTTP header should, if possible, contain the estimated time for the recovery of the service.
upvoted 4 times
dhie
2 years, 9 months ago
This is right explain! I go with D
upvoted 1 times
...
...
FR99
3 years, 8 months ago
Answer is 'D'
upvoted 2 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