
Answer-first summary for fast verification
Answer: Integrate a timestamp attribute in the application for DynamoDB TTL to manage data retention.
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.
Author: LeetQuiz Editorial Team
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?
A
Use CloudFormation for deployment, cycling stacks every 30 days.
B
Employ an EC2-based monitoring app with DynamoDB Streams for timestamping and script-based cleanup.
C
Configure DynamoDB Streams to trigger a Lambda function for automated cleanup of outdated items.
D
Integrate a timestamp attribute in the application for DynamoDB TTL to manage data retention.
No comments yet.