Load Testing · Senior · Question 49 of 76
A rate limiter uses a token bucket with burst 100 and rate 10/s. What should a test check?
- 1That exactly 10 requests are allowed in the first second only
- 2That bursts up to 100 pass and sustained load is cut to 10/s
- 3That all requests above 10/s get 500 errors
Show the answer
Correct answer: That bursts up to 100 pass and sustained load is cut to 10/s
Explanation
Token buckets allow short bursts. Tests should confirm burst size, refill rate, correct 429 responses with Retry-After, and per-key isolation.