Rate limiting
Token bucket, sliding windows, and protecting an API from abuse. Answers are graded on the server.
50 questions · page 1 of 10
0 of 50 answered
Question 1 · Multiple choice
What does a token bucket rate limiter allow that a fixed window does not?
Question 2 · Multiple choice
A fixed window limiter allows 100 requests per minute. A client sends 100 requests at 0:59 and another 100 at 1:01. What actually happened?
Question 3 · Scenario
An API needs to rate-limit per user, and the service runs on 20 instances behind a load balancer. Counting requests in each instance's local memory would be wrong. Why?
Question 4 · Scenario
A public API wants to stop one abusive client without punishing everyone else. What's the standard key to rate-limit on?
Question 5 · Multiple choice
What HTTP status code is conventionally returned when a client is rate-limited?