Q99 — AWS SAA-C03 Ch.10

Question 99 of 100 | ← Chapter 10

Q699. A company has an application that uses an Amazon DynamoDB table for storage. A solutions architect discovers that many requests to the table are not returning the latest data The company's users have not reported any other issues with database performance. Latency is in an acceptable range.Which design change should the solutions architect recommend?

Correct Answer: C. Request strongly consistent reads for the table

Explanation

To address the issue of requests to the Amazon DynamoDB table not returning the latest data, the solutions architect should recommend the following design change:C. Request strongly consistent reads for the table.Option C, requesting strongly consistent reads for the table, ensures that the most up-to-date data is returned by DynamoDB. By default, DynamoDB uses eventually consistent reads, which allow for lower latency but may not reflect the latest changes. With strongly consistent reads, the read operations will wait until all prior write operations have been completed, ensuring that the data returned is the latest.Options A and B, adding read replicas to the table and using a global secondary index (GSI), do not directly address the issue of returning the latest data. Read replicas and GSIs can help with scaling read capacity and indexing specific attributes, respectively, but they do not guarantee the consistency of the data returned.Option D, requesting eventually consistent reads for the table, is the default behavior of DynamoDB and is not suitable for addressing the requirement of returning the latest data. Eventually consistent reads may return stale data if there have been recent writes.Therefore, the best solution is C: Request strongly consistent reads for the table. This ensures that the most up-to-date data is returned to the application, addressing the issue of requests not returning the latest data.