AWS Certified Solutions Architect - Associate

AWS Certified Solutions Architect - Associate

Get started today

Ultimate access to all questions.


A company's application on EC2 instances writes to a growing DynamoDB table, requiring data access limited to the last 30 days. What is the most cost-effective solution with minimal development effort?




Explanation:

The correct answer is D. By adding a timestamp attribute to each new item and configuring DynamoDB to use this attribute as the TTL (Time to Live) attribute, the data will automatically be expired and deleted after 30 days. This solution is cost-effective because it reduces the need for additional infrastructure or manual intervention and minimizes development effort as DynamoDB handles the deletion of expired items automatically.