A query targets a DynamoDB global secondary index. Which read consistency mode can that query use?
Correct answer
A. Eventually consistent only, because a GSI is maintained asynchronously
19 views
A. Eventually consistent only, because a GSI is maintained asynchronously
19 views
Reads from a global secondary index are always eventually consistent, because DynamoDB propagates table writes to the index asynchronously and a query cannot request strong consistency against a GSI. A local secondary index, which shares the table's partition key, can serve strongly consistent reads. The exam trap is offering ConsistentRead true on a GSI query, which the service rejects at request time.
Asked in: NTS, PPSC IT, Campus Interviews
Not sure why the answer is A? Ask here and get an explanation.