A company is designing a new internal application that will store temporary session logs. The log writing pattern is highly unpredictable, characterized by sudden, brief spikes of intensive activity followed by hours of complete silence. The database must minimize costs, and logs do not need to be retained for more than 7 days. Which combination of database configurations or features will meet these requirements most cost-effectively? (Select TWO.)
- Configure the Amazon DynamoDB table to use on-demand capacity mode.Cevap
- Enable Amazon DynamoDB Time to Live (TTL) on the table with an expiration timestamp.Cevap
- CConfigure the Amazon DynamoDB table with provisioned capacity mode and set high write capacity units to accommodate the spikes.
- DDeploy an Amazon RDS for PostgreSQL DB instance with Multi-AZ enabled to handle the spiky write throughput.
- EDeploy an Amazon RDS DB instance and configure an active read replica to process the spiky write workload.
Cevap
The correct configurations are configuring the Amazon DynamoDB table to use on-demand capacity mode and enabling Amazon DynamoDB Time to Live (TTL) on the table.
Configuring the table to use on-demand capacity mode ensures that charges are only incurred for the actual read and write operations performed, which is highly cost-optimized for unpredictable workloads with long idle times. Enabling Time to Live (TTL) allows DynamoDB to automatically delete logs older than 7 days without consuming any write capacity units or incurring additional cleanup costs, thereby minimizing ongoing storage expenses.
Adım Adım Çözüm
Anahtar Kavram
Selecting cost-effective capacity modes and automated retention features for unpredictable, transient workloads in AWS databases.
Tahmini Süre:1m 30s