A media streaming company is launching an on-demand video platform on AWS. The application database workload is highly unpredictable, experiencing sudden surges of read and write queries during popular content releases, followed by extended periods of low activity. The company requires a database design that supports high availability within a single AWS Region with a Recovery Time Objective (RTO) of less than 30 seconds and a Recovery Point Objective (RPO) of 0 (no data loss) during an Availability Zone outage. Additionally, the database must dynamically scale compute capacity up and down to match workload demands without manual intervention or connection disruption, while allowing read workloads to scale independently. Which database configuration will meet these requirements?
- Deploy an Amazon Aurora PostgreSQL Serverless v2 DB cluster with a writer instance and a reader instance in different Availability Zones, and configure the application to use the cluster endpoint for writes and the reader endpoint for reads.Answer
- BDeploy an Amazon RDS for PostgreSQL DB instance in a single Availability Zone, and configure a Read Replica in a different Availability Zone. Configure the application to direct writes to the primary instance, and design a custom failover script to promote the Read Replica during an outage.
- CDeploy a single-AZ Amazon Aurora DB cluster, and set up a separate standby Aurora DB cluster in another Availability Zone. Configure Amazon Route 53 latency routing to automatically failover and route database writes between the two clusters during an outage.
- DDeploy an Amazon RDS for PostgreSQL DB instance in a Multi-AZ deployment. Set up a second RDS DB instance as a scaled-down warm standby in a different AWS Region, and configure the application to failover to the regional standby within 30 seconds.