AWS Certified Developer – Associate — Question 161

A developer is writing an application that runs on Amazon EC2 instances in an Auto Scaling group The application data is stored in an Amazon DynamoDB table and records are constantly updated by all instances. An instance sometimes retrieves old data. The developer wants to correct this by making sure the reads are strongly consistent.

How can the developer accomplish this?

Answer options

Correct answer: A

Explanation

The correct answer is A because setting ConsistentRead to true ensures that the data retrieved is the most recent version, providing strong consistency. Options B and C do not address read consistency directly, while option D relates to reading from shards, which is not applicable in this context.