AWS Certified Solutions Architect – Associate (SAA-C02) — Question 488

A company runs an application on a large fleet of Amazon EC2 instances. The application reads and write entries into an Amazon DynamoDB table. The size of the DynamoDB table continuously grows, but the application needs only data from the last 30 days. The company needs a solution that minimizes cost and development effort.
Which solution meets these requirements?

Answer options

Correct answer: D

Explanation

DynamoDB Time to Live (TTL) is a native, cost-free feature that automatically deletes expired items from tables, minimizing both development effort and operational costs. Options B and C require extra compute resources (EC2 or Lambda) and custom code, which increases costs and maintenance. Option A is not viable because recreating the CloudFormation stack every 30 days would delete all current data and cause application downtime.