A retail company is migrating its product inventory database to AWS. The database experiences a steady, predictable baseline of and during regular hours. However, during flash sales that occur for every Friday evening, read traffic spikes to and write traffic spikes to . The database schema is non-relational, and the company wants to optimize cost while ensuring the database does not throttle during flash sales. Which TWO configurations should the solutions architect recommend to meet these requirements cost-effectively? (Select TWO.)
- Configure Amazon DynamoDB in Provisioned Capacity Mode and configure AWS Application Auto Scaling to schedule write capacity scaling before and after the flash sales.Answer
- Implement Amazon ElastiCache to cache inventory read requests, reducing the required DynamoDB provisioned read capacity during both baseline and peak hours.Answer
- CConfigure Amazon DynamoDB in On-Demand Capacity Mode to automatically scale up to support the read and write spikes during the flash sales.
- DConfigure Amazon DynamoDB with provisioned capacity set statically to Read Capacity Units (RCUs) and Write Capacity Units (WCUs) to prevent throttling.
- EMigrate the database to Amazon RDS for PostgreSQL with a Multi-AZ deployment and route the write traffic spikes to the standby replica to distribute the load.
Answer
The correct configurations are to run DynamoDB in Provisioned Capacity Mode with scheduled scaling for write capacity and to deploy Amazon ElastiCache to cache inventory read requests.
Implementing scheduled scaling for write capacity and caching reads with Amazon ElastiCache is the most cost-effective solution. Since the flash sale occurs at a predictable time, AWS Application Auto Scaling can schedule write capacity increases to before the sale and scale back down to the baseline of after the sale, preventing throttling at the beginning of the sale. Caching product inventory details with Amazon ElastiCache reduces the read load on DynamoDB, allowing the database to be provisioned with a low, cost-optimized read capacity baseline instead of provisioning for the peak.
Step-by-Step Solution
Key Concept
Cost-optimized database capacity planning using DynamoDB scheduled scaling and ElastiCache caching layers for predictable and spike workloads.
Estimated Time:2m 0s