All Questions
Dynamodb medium

When is an 'Atomic Counter' (using `SET x = x + 1`) insufficient for maintaining an accurate count in a production environment?

  1. A When the count is expected to exceed 1,000 per hour.
  2. B When idempotent operations are required: Atomic counters are not idempotent. If a network retry occurs, the counter might be incremented twice, leading to over-counting.
  3. C When the table is in On-Demand mode.
  4. D When the attribute being incremented is a String instead of a Number.

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

Get the app

Related questions