All Questions
Dynamodb medium

In a nationwide voting application, a single candidate receives 50,000 votes per second. How can this exceed the 1,000 WCU partition limit using 'Write Sharding'?

  1. A By increasing the provisioned capacity to 50,000 WCU immediately.
  2. B Partition Suffixes: Instead of one item `CANDIDATE_A`, create 100 items (`CANDIDATE_A_1` through `CANDIDATE_A_100`). Each vote is sent to a random suffix, spreading the 50,000 WCU across 100 partitions.
  3. C By enabling DAX (DynamoDB Accelerator) for write-heavy traffic.
  4. D By converting the Votes from 'Strong Consistency' to 'Eventual Consistency'.

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

Get the app

Related questions