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

Why is Redis INCR suitable for a shared counter?

Why is Redis INCR suitable for a shared counter?

  1. A.It writes to disk before replying
  2. B.It is atomic, so simultaneous increments are never lost
  3. C.It encrypts the counter
  4. D.It works without a network
Answer & explanation

Correct answer: It is atomic, so simultaneous increments are never lost

Atomic increments mean two servers adding at the same moment both count.

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 →