🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Design a Rate Limiter: all 15 questions

Quiz: Design a Rate Limiter · Question 11 of 15

How much does a token bucket need to store for each client?

How much does a token bucket need to store for each client?

  1. A.Every request timestamp
  2. B.Two numbers: the current tokens and the last refill time
  3. C.The full request bodies
  4. D.Nothing at all
Answer & explanation

Correct answer: Two numbers: the current tokens and the last refill time

That is why token buckets scale cheaply to millions of clients.

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 →