nerdexam
Cisco

200-901 · Question #183

A developer is trying to retrieve data over a REST API. The API server responds with an HTTP client error response code. After investigating the response the developer realizes the response has a Retr

The correct answer is C. Too many requests were sent to the REST service in a given amount of time.. The Retry-After response header is specifically associated with HTTP 429 Too Many Requests, a client-side error (4xx). It indicates the client has exceeded the API's rate limit - sending too many requests in a given time window. The server returns Retry-After to tell the client h

Understanding and Using APIs

Question

A developer is trying to retrieve data over a REST API. The API server responds with an HTTP client error response code. After investigating the response the developer realizes the response has a Retry-After header. What is the root cause of this error?

Options

  • AAn appliance limited the rate of requests to the transport layer.
  • BThe REST service is unreachable at the time of the REST request.
  • CToo many requests were sent to the REST service in a given amount of time.
  • DAn appliance limited the rate of requests to the application layer.

How the community answered

(28 responses)
  • A
    4% (1)
  • C
    93% (26)
  • D
    4% (1)

Explanation

The Retry-After response header is specifically associated with HTTP 429 Too Many Requests, a client-side error (4xx). It indicates the client has exceeded the API's rate limit - sending too many requests in a given time window. The server returns Retry-After to tell the client how long to wait before making another request. Option A and D are incorrect because rate limiting at the transport layer or by an appliance (e.g., a firewall) would typically not surface a Retry-After header in an HTTP response - that header comes from the application layer API server itself. Option B is incorrect because service unreachability would result in a 503 Service Unavailable (a server-side 5xx error), which can also use Retry-After, but the question states it is an HTTP client error (4xx), pointing directly to 429.

Topics

#REST API error handling#HTTP status codes#Rate limiting#Retry-After header

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice