🎙 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 14 of 15

Why does the fixed-window Redis key get an EXPIRE?

Why does the fixed-window Redis key get an EXPIRE?

  1. A.The key deletes itself after the window, so old counters do not fill memory
  2. B.It makes INCR atomic
  3. C.It resets the limit for every user at once
  4. D.It sends Retry-After to the client
Answer & explanation

Correct answer: The key deletes itself after the window, so old counters do not fill memory

Each window's counter is only needed until the window ends.

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 →