All Questions
Dynamodb hard

Why does the presence of a Local Secondary Index (LSI) impose a strict 10GB limit on an 'Item Collection' (all items sharing the same Partition Key)?

  1. A LSIs use a legacy 32-bit address space that cannot reference items beyond 10GB.
  2. B Locality Constraint: To guarantee strongly consistent index reads, DynamoDB must store the base items and all their LSI projections on the same physical SSD shard. This shard cannot be split across servers, so the collection must fit within the shard's logical boundary.
  3. C It is a safety mechanism to prevent developers from accidentally creating too many GSIs.
  4. D LSI data is backed up to S3 every 10GB, causing a performance pause.

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

Get the app

Related questions