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

  1. Question 1 · Multiple choice

    What does a token bucket rate limiter allow that a fixed window does not?

    Options for question 1
  2. 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?

    Options for question 2
  3. 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?

    Options for question 3
  4. 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?

    Options for question 4
  5. Question 5 · Multiple choice

    What HTTP status code is conventionally returned when a client is rate-limited?

    Options for question 5
0 of 50 answered