← 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?
- A.The key deletes itself after the window, so old counters do not fill memory
- B.It makes INCR atomic
- C.It resets the limit for every user at once
- 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 →