A company runs a read-heavy content management application on AWS. The application database is deployed on an Amazon RDS for MySQL DB instance. The workload consists of a steady, low-volume write rate of transactions per second, but read requests regularly spike up to queries per second during peak hours. The database currently uses a db.r6g.4xlarge Multi-AZ instance to handle the peak read traffic, but the company wants to optimize the high database costs while maintaining high availability. Which database architecture is the most cost-effective while meeting the application's availability and performance needs?
- AModify the primary database instance to a Single-AZ deployment, and configure a Read Replica in a different Availability Zone to serve as the automatic failover target in the event of a primary database outage.
- Modify the primary database instance to a smaller Multi-AZ instance class, such as db.r6g.large, to handle the steady write workload, and deploy RDS Read Replicas to offload the peak read traffic.Cevap
- CMigrate the database to Amazon DynamoDB and configure the table in Provisioned Capacity mode with a fixed Read Capacity Units (RCUs) and Write Capacity Units (WCUs) to guarantee performance during peak hours.
- DKeep the db.r6g.4xlarge Multi-AZ deployment to handle peak workloads, and purchase a Compute Savings Plan to reduce the hourly compute cost of the database instance.
Cevap
Modify the primary database instance to a smaller Multi-AZ instance class, such as db.r6g.large, to handle the steady write workload, and deploy RDS Read Replicas to offload the peak read traffic.
The correct architecture scales down the primary database instance to a smaller Multi-AZ instance class to handle the steady write workload, and uses cheaper RDS Read Replicas to offload the peak read traffic. This aligns the compute capacity with the actual query demands, leading to significant cost savings compared to maintaining a large db.r6g.4xlarge primary instance that cannot offload reads to its Multi-AZ standby.
Adım Adım Çözüm
Anahtar Kavram
Read replicas should be used to offload read traffic from the primary instance, allowing the primary instance to be downsized and reducing overall database costs while maintaining high availability via Multi-AZ.
Tahmini Süre:2m 0s