Soru

Zorluk: KolayCost-Optimized Database Design and Capacity Planning

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.)

  1. Configure the Amazon DynamoDB table to use on-demand capacity mode.Cevap
  2. Enable Amazon DynamoDB Time to Live (TTL) on the table with an expiration timestamp.Cevap
  3. C
    Configure the Amazon DynamoDB table with provisioned capacity mode and set high write capacity units to accommodate the spikes.
  4. D
    Deploy an Amazon RDS for PostgreSQL DB instance with Multi-AZ enabled to handle the spiky write throughput.
  5. E
    Deploy 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

1
Analyze the database workload patterns and storage requirements.
The workload is highly unpredictable with spiky write traffic and long periods of idle time, and the data (logs) has a short lifespan of 7 days.
Understanding the traffic pattern helps identify the most cost-effective capacity scaling model, while the data retention requirement highlights potential storage cost optimization opportunities.
2
Select the optimal DynamoDB capacity mode.
DynamoDB on-demand capacity mode is selected.
For spiky and unpredictable traffic with long periods of silence, on-demand mode eliminates the cost of provisioning unused idle capacity, ensuring you only pay for requests made.
3
Select the optimal mechanism to manage data retention.
DynamoDB Time to Live (TTL) is enabled.
TTL automatically deletes expired items at no extra cost and does not consume provisioned throughput, keeping storage costs minimal without administrative overhead.

Anahtar Kavram

Selecting cost-effective capacity modes and automated retention features for unpredictable, transient workloads in AWS databases.
Tahmini Süre:1m 30s
Bu soruyu puanla