passdrill
AWS SAA-C03 · RDS, DynamoDB & Databases · Card 008/014 hard

A table's access pattern requires querying items by an alternate sort key while still filtering within the same partition key as the base table, and the team wants the option to request strongly consistent reads on that query. The table has already been in production for a year. Which type of DynamoDB secondary index can satisfy this, and why?

  1. A global secondary index, because only global secondary indexes support strongly consistent reads
  2. A local secondary index, but only if it is created before any items are written to the table
  3. A global secondary index, because it can be added at any time after table creation and its own provisioned throughput is separate from the base table's
  4. Neither index type applies retroactively; a local secondary index must be defined at table creation time, so a strongly consistent alternate-sort-key query on an existing table cannot be added this way
Next card → Shuffle