
Answer-first summary for fast verification
Answer: Update the backend to use strongly consistent reads. Update the devices to always write to and read from their home AWS Region.
1. Explanation for Answer A: - Update the backend to use strongly consistent reads: This ensures that whenever the application reads data from the DynamoDB global table, it will receive the most recent write. This helps in reducing the occurrence of stale data being sent to user devices. - Update the devices to always write to and read from their home AWS Region: By directing the devices to interact with their home region, latency is minimized, and the likelihood of encountering stale data is reduced. This is because the data is written and read from the same region, ensuring that the most up-to-date version is always available. The combination of these two changes addresses the issue of stale data being sent to user devices by ensuring that the most recent data is always read and that the devices interact with the closest region for both reading and writing operations.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
While debugging a backend application for an LOT system that supports globally distributed devices, a Solutions Architect notices that stale data is occasionally being sent to user devices. Devices often share data, and stale data does not cause issues in most cases. However, device operations are disrupted when a device reads the stale data after an update. The global system has multiple identical application stacks deployed in different AWS Regions. If a user device travels out of its home geographic region, it will always connect to the geographically closest AWS Region to write or read data. The same data is available in all supported AWS Regions using an Amazon DynamoDB global table. What change should be made to avoid causing disruptions in device operations?
A
Update the backend to use strongly consistent reads. Update the devices to always write to and read from their home AWS Region.
B
Enable strong consistency globally on a DynamoDB global table. Update the backend to use strongly consistent reads.
C
Switch the backend data store to Amazon Aurora MySQL with cross-region replicas. Update the backend to always write to the master endpoint.
D
Select one AWS Region as a master and perform all writes in that AWS Region only. Update the backend to use strongly consistent reads.
No comments yet.