1. Home
  2. Computer Science MCQs
  3. Cloud Computing
  4. A query targets a DynamoDB global secondary index. Which…

Added 30 Nov -0001

A query targets a DynamoDB global secondary index. Which read consistency mode can that query use?

  1. Eventually consistent only, because a GSI is maintained asynchronously Correct answer
  2. Strongly consistent, provided the query targets a single partition key
  3. Strongly consistent, but only if the index was created with that setting
  4. Either mode, because a GSI is replicated synchronously within the Region

Correct answer

A. Eventually consistent only, because a GSI is maintained asynchronously

19 views

MCQSEXAM

Explanation

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.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Cloud Computing MCQs

Practise all Cloud Computing MCQs

Similar MCQs