A global logistics tracking enterprise is designing a real-time shipment monitoring application. The application runs on Amazon ECS containers across multiple Availability Zones in a primary AWS Region (us-east-1) and replicates data to a secondary AWS Region (eu-west-1). The database tier has the following requirements:
- The relational database must support high-throughput write operations and scale read capacity dynamically to handle up to 80,000 queries per second during peak shipping hours.
- In the event of a regional disaster, the database must fail over to the secondary region with a Recovery Time Objective (RTO) of less than 2 minutes and a Recovery Point Objective (RPO) of less than 10 seconds.
- All data at rest must be encrypted using customer-managed KMS keys (CMKs) to satisfy corporate audit compliance.
Which database and storage design meets these requirements?
- ADeploy an Amazon RDS for PostgreSQL database in a Multi-AZ deployment in us-east-1, and configure a cross-region read replica in eu-west-1. Configure Auto Scaling to dynamically scale the standby instances within the Multi-AZ deployment in us-east-1 to handle the peak read traffic.
- Deploy an Amazon Aurora PostgreSQL Global Database with the primary cluster in us-east-1 and a secondary cluster in eu-west-1. Configure Aurora Auto Scaling to dynamically add reader instances in the primary cluster based on CPU utilization. Encrypt the database clusters in each region using local customer-managed KMS keys.Answer
- CDeploy an Amazon Aurora PostgreSQL database cluster in us-east-1. Configure AWS Backup to perform hourly snapshots of the database cluster and copy them to eu-west-1. In the event of a regional disaster, restore the database cluster from the latest copied snapshot in eu-west-1.
- DDeploy an Amazon Aurora PostgreSQL Global Database with the primary cluster in us-east-1 and a secondary cluster in eu-west-1. Configure Aurora Auto Scaling to dynamically add reader instances in the primary cluster based on CPU utilization. Encrypt the database clusters in both regions using the default AWS-managed KMS key for Amazon RDS.