Question #1526
A company operates a global e-commerce platform with its inventory database hosted in a single AWS Region. The company wants to deploy the application to multiple Regions to reduce latency for users worldwide. The platform must maintain a globally consistent inventory database that supports updates from all Regions, with an average latency under 1 second for write operations. Each Regional deployment must handle local application requests independently while ensuring global data consistency.
Convert the database to Amazon DynamoDB and configure a global table. Use Regional endpoints in each deployment to enable low-latency writes and automatic data synchronization.
Migrate the database to Amazon Aurora Global Database. Configure a primary cluster in one Region and secondary clusters in other Regions. Use Regional endpoints to route writes to the primary cluster and reads to secondary clusters.
Migrate the database to Amazon RDS for PostgreSQL. Deploy read replicas in each Region and route write operations to the primary Region. Use read replicas for local read requests in each Region.
Implement Amazon ElastiCache with cluster mode enabled in each Region. Use AWS Lambda to synchronize inventory updates between Regional Redis clusters and a central RDS database.
Explanation
Answer A is correct because DynamoDB Global Tables support multi-region writes with automatic, fast replication (typically under 1 second), meeting the requirement for globally consistent inventory updates and low-latency writes. Each Region uses its own endpoint for local writes, ensuring independent handling of requests.
Why other options are incorrect:
- B (Aurora Global Database): Writes are restricted to the primary Region, violating the requirement for updates from all Regions.
- C (RDS read replicas): Read replicas are asynchronous and read-only, leading to potential replication lag and write latency.
- D (ElastiCache + Lambda): Synchronization via Lambda introduces latency and complexity, failing to guarantee real-time consistency.
Key Points:
- Global Tables enable active-active architecture with sub-second replication.
- Multi-Region writes are critical for low-latency updates.
- Consistency is ensured via DynamoDB's internal synchronization, unlike async replication in other services.
Answer
The correct answer is: A