API Testing · Middle · Question 18 of 75
How do you test a rate limit of 100 requests per minute?
- 1Send 101 requests and check the 101st gets 429 with Retry-After
- 2Rate limits can only be tested in production
- 3Send one request and check that the response is fast
Show the answer
Correct answer: Send 101 requests and check the 101st gets 429 with Retry-After
Explanation
Also check that the limit resets, counts per user or key as documented, and can't be bypassed by changing headers.