A company is redesigning its database tier to optimize costs. The application uses two main tables: a user session table that experiences highly unpredictable, spiky write traffic when new media is released but remains idle for long periods, and a product catalog table that experiences a highly predictable, constant baseline read and write traffic. Currently, both tables are hosted on a single Amazon RDS for PostgreSQL DB instance, which must be constantly scaled for peak load, resulting in high idle costs. Which TWO actions should a solutions architect take to meet these requirements in the most cost-effective manner while maintaining high availability? (Select TWO.)
- Migrate the user session table to an Amazon DynamoDB table configured with On-Demand capacity mode.Cevap
- Migrate the product catalog table to an Amazon DynamoDB table configured with Provisioned capacity mode and auto scaling enabled.Cevap
- CMigrate the user session table to an Amazon DynamoDB table configured with Provisioned capacity mode set to the maximum expected peak traffic.
- DMigrate both tables to Amazon DynamoDB tables configured with On-Demand capacity mode.
- EKeep both tables on the Amazon RDS DB instance, and configure an Amazon RDS Read Replica in a different Availability Zone to act as the primary automatic failover target.
Cevap
Migrate the user session table to an Amazon DynamoDB table configured with On-Demand capacity mode, and migrate the product catalog table to an Amazon DynamoDB table configured with Provisioned capacity mode and auto scaling enabled.
Migrating the user session table to DynamoDB configured with On-Demand capacity mode ensures that the company only pays for the actual database requests during spiky periods and pays nothing when the table is idle. Migrating the product catalog table to DynamoDB configured with Provisioned capacity mode with auto scaling optimizes costs for the stable, predictable baseline by leveraging lower per-request rates while scaling dynamically to handle gradual load changes.
Adım Adım Çözüm
Anahtar Kavram
Selecting and configuring database capacity models (On-Demand versus Provisioned with auto scaling) to align with workload traffic patterns (predictable baseline versus unpredictable spiky) for cost optimization.
Tahmini Süre:2m 30s