All Questions
Redis easy

Why is the `INCR` command preferred over manual read-and-write logic for counting events like web page views?

  1. A It is atomic; it ensures the count is correct even if thousands of clients increment it at once.
  2. B It supports text parsing, allowing Redis to automatically identify numbers inside JSON blobs.
  3. C It automatically resets the counter to zero every 24 hours to prevent numerical overflow errors.
  4. D It encrypts the numerical value to prevent malicious users from seeing the total visit traffic.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions