← Quiz: Design a Rate Limiter: all 15 questions
Quiz: Design a Rate Limiter · Question 15 of 15
Where is a rate limiter usually placed?
Where is a rate limiter usually placed?
- A.Inside the database
- B.In the browser's JavaScript only
- C.In the API gateway or a middleware before the business code, so rejected requests cost almost nothing
- D.After the response has been sent
Answer & explanation
Correct answer: In the API gateway or a middleware before the business code, so rejected requests cost almost nothing
Checking early stops abusive traffic before it uses real resources.
Can you get the rest right without peeking?
Take the timed Quiz: Design a Rate Limiter quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →