Soru

Zorluk: OrtaResilient Database Configurations and High Availability

A global retail company is deploying a transactional microservice across two AWS Regions: us-east-1 and eu-west-1. The service requires active-active database access, allowing users in both regions to perform low-latency reads and writes locally. The architecture must achieve a Recovery Point Objective (RPO) of less than 1 second and a Recovery Time Objective (RTO) of less than 5 seconds. The database must automatically handle multi-region replication and conflict resolution. Which two configurations should a solutions architect select to meet these requirements? (Select TWO.)

  1. Create an Amazon DynamoDB table in us-east-1 and configure it as a global table by adding the eu-west-1 Region.Cevap
  2. Configure the microservice instances in each region to read and write to their local regional Amazon DynamoDB endpoint.Cevap
  3. C
    Set up an Amazon RDS for PostgreSQL Multi-AZ DB cluster in us-east-1 and deploy cross-region Read Replicas in eu-west-1 to handle local writes.
  4. D
    Deploy an Amazon Aurora PostgreSQL Global Database and use Amazon Route 53 latency routing to load-balance active writes across the writer endpoints in both regions.
  5. E
    Configure a Pilot Light disaster recovery strategy using Amazon Aurora Global Database, relying on manual failover to promote the secondary region's database cluster when needed.

Cevap

Create an Amazon DynamoDB table in us-east-1 and configure it as a global table by adding the eu-west-1 Region, and configure the microservice instances in each region to read and write to their local regional Amazon DynamoDB endpoint.
To satisfy the requirements of active-active multi-region writes, sub-second RPO, and sub-5-second RTO, Amazon DynamoDB Global Tables is the optimal choice. It provides multi-region, multi-active replication where writes to any region are propagated to other regions within a second. By pointing the local microservices to their local DynamoDB endpoints, the application achieves low-latency local reads and writes, and if a region fails, traffic can be instantly rerouted to the other region's local endpoint, meeting the strict RTO constraint.

Adım Adım Çözüm

1
Analyze the application requirements.
Identify that the system demands active-active local multi-region writes, RPO < 1 second, RTO < 5 seconds, and automatic conflict resolution.
This rules out traditional relational databases like RDS or Aurora that operate with a single primary writer and secondary read-only replicas.
2
Select a multi-region active-active database technology.
Amazon DynamoDB Global Tables provides fully managed active-active replication with automatic conflict resolution (last-writer-wins) and sub-second replication latency (RPO < 1s).
DynamoDB Global Tables replicates data across regions in near real-time, matching the sub-second replication requirement.
3
Configure application routing and local access.
Directing applications to their local regional endpoints ensures low-latency reads and writes, and enables automatic failover to the other region's endpoint in less than 5 seconds (RTO).
This fully addresses the active-active performance and resiliency constraints.

Anahtar Kavram

Multi-region active-active database architectures with low RTO/RPO using DynamoDB Global Tables
Bu soruyu puanla