Bird
0
0

You are designing an API client that must handle 429 Too Many Requests responses gracefully. Which approach best prevents overwhelming the server while retrying?

hard📝 Application Q8 of 15
Rest API - HTTP Status Codes

You are designing an API client that must handle 429 Too Many Requests responses gracefully. Which approach best prevents overwhelming the server while retrying?

ARetry immediately without delay to speed up requests
BUse exponential backoff with jitter based on Retry-After header
CIgnore 429 errors and continue sending requests
DStop all requests permanently after first 429
Step-by-Step Solution
Solution:
  1. Step 1: Understand exponential backoff with jitter

    This method increases wait time exponentially and adds randomness to avoid bursts.
  2. Step 2: Compare with other options

    Immediate retry or ignoring 429 overloads server; stopping permanently is too strict.
  3. Final Answer:

    Use exponential backoff with jitter based on Retry-After header -> Option B
  4. Quick Check:

    Exponential backoff + jitter = best retry strategy after 429 [OK]
Quick Trick: Exponential backoff with jitter prevents server overload [OK]
Common Mistakes:
  • Retrying immediately ignoring server limits
  • Ignoring 429 errors completely
  • Stopping requests forever after one 429

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes