Bird
0
0

Given a rate limit of 5 requests per minute, what happens if a client sends 7 requests quickly?

medium📝 Predict Output Q4 of 15
Rest API - Rate Limiting and Throttling
Given a rate limit of 5 requests per minute, what happens if a client sends 7 requests quickly?
AAll 7 requests are processed normally.
BThe server crashes due to overload.
COnly the first 5 requests are processed; the rest are rejected.
DThe client is permanently blocked.
Step-by-Step Solution
Solution:
  1. Step 1: Understand the rate limit rule

    The server allows only 5 requests per minute per client.
  2. Step 2: Apply the rule to 7 requests

    The first 5 requests are accepted; the 6th and 7th exceed the limit and are rejected.
  3. Final Answer:

    Only the first 5 requests are processed; the rest are rejected. -> Option C
  4. Quick Check:

    Requests over limit get rejected = B [OK]
Quick Trick: Requests above limit get rejected, not processed [OK]
Common Mistakes:
  • Assuming all requests go through
  • Thinking server crashes on limit breach
  • Believing client is blocked forever

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes