A company must manage costs and control the size of an existing Amazon DynamoDB table without interrupting ongoing reads or writes. They want data to be automatically removed after 1 month with minimal maintenance. Which approach meets these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable DynamoDB's TTL feature so items expire automatically based on a timestamp attribute..
Why this is the answer
DynamoDB's Time To Live (TTL) feature is the most efficient and cost-effective solution. It automatically deletes items after a specified timestamp, requiring minimal maintenance and incurring no additional read/write costs for the deletion process itself. This ensures ongoing reads and writes are not interrupted. Scheduling an EventBridge rule to invoke a Lambda function that scans and deletes items would incur read costs for the scan and write costs for each deletion, and it's less efficient than TTL. Enabling DynamoDB Streams to trigger a Lambda is designed for real-time data processing, not for periodic cleanup of old data, and would also incur read/write costs. Running a periodic Lambda function to scan and delete is similar to the EventBridge approach, incurring unnecessary read/write costs and being less optimized than TTL.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed