Pick the fix
An events table uses event_date as the partition key and today's writes are throttled. Fix?
Hint 1 of 1
How many partitions does 'today' map to?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A Partition by a high-cardinality key such as device id, or shard the date with a suffix
Correct. Spreads writes across partitions.
Each partition has its own throughput limit, and today's date sends every write to one partition. A high-cardinality key, or the date plus a random suffix, spreads writes across many partitions.
Why not the others?
- B Raise provisioned capacity. One partition still has its own limit.
- C Add a sort key on time. Sort keys don't change which partition takes the writes.
- D Use Scan with a filter. Makes reads worse and doesn't help writes.