A company is optimizing the costs of its database tier on AWS. The current architecture consists of:
* An Amazon RDS for PostgreSQL database that requires of storage. The database handles OLTP workloads with a constant baseline of , but experiences daily performance spikes up to .
* An Amazon DynamoDB table used to store historical user activity logs. The log generation is highly unpredictable, experiencing sudden write bursts of up to followed by hours of complete inactivity.
Which combination of database configurations will meet these requirements most cost-effectively? (Select TWO.)
- Configure the RDS for PostgreSQL DB instance to use gp3 storage with provisioned IOPS.Answer
- Configure the DynamoDB table to use On-Demand capacity mode.Answer
- CConfigure the DynamoDB table to use Provisioned capacity mode with Auto Scaling enabled and a target utilization of .
- DConfigure the DynamoDB table to use Provisioned capacity mode with a fixed baseline of Write Capacity Units (WCUs) to handle peak write bursts.
- EConfigure the RDS for PostgreSQL DB instance as a Single-AZ instance and deploy a Read Replica in another Availability Zone to serve as the automatic failover target.
Answer
The correct database configurations are to configure the RDS for PostgreSQL DB instance to use gp3 storage with 9,000 provisioned IOPS, and to configure the DynamoDB table to use On-Demand capacity mode.
Configuring the RDS for PostgreSQL DB instance to use gp3 storage with provisioned IOPS is correct because gp3 allows independent provisioning of IOPS and storage volume size. This avoids the cost of scaling a gp2 volume to just to get , and is more cost-effective than io2 storage. Configuring the DynamoDB table to use On-Demand capacity mode is correct because the workload is highly unpredictable with long periods of complete inactivity, which eliminates idle capacity costs.
Step-by-Step Solution
Key Concept
Cost-Optimized Database Design and Capacity Planning