All Questions
Dynamodb medium

What is the primary architectural advantage of a 'Sparse Index' in a table with billions of rows (e.g., searching for only 'Flagged' items)?

  1. A It automatically compresses the data using a specialized Gzip variant.
  2. B Filtering at Source: Since DynamoDB only replicates items into a GSI if they possess the GSI's partition key, the index size (and read cost) remains tiny compared to the base table, making scans on the index extremely efficient.
  3. C It allows the index to be stored on an HDD instead of an SSD.
  4. D It prevents any future writes from modifying the flagged items.

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

Get the app

Related questions