DEA-C01 · Question #266
A data engineer is building a new data pipeline that stores metadata in an Amazon DynamoDB table. The data engineer must ensure that all items that are older than a specified age are removed from…
The correct answer is A. Enable DynamoDB TTL on the DynamoDB table. Adjust the application source code to set the. DynamoDB Time to Live (TTL) is a fully managed feature that automatically expires and deletes items based on a timestamp attribute you define. By enabling TTL and setting the TTL attribute in the application code, items older than the specified age are removed without the need…
Question
A data engineer is building a new data pipeline that stores metadata in an Amazon DynamoDB table. The data engineer must ensure that all items that are older than a specified age are removed from the DynamoDB table daily. Which solution will meet this requirement with the LEAST configuration effort?
Options
- AEnable DynamoDB TTL on the DynamoDB table. Adjust the application source code to set the
- BCreate an Amazon EventBridge rule that uses a daily cron expression to trigger an AWS Lambda
- CAdd a lifecycle configuration to the DynamoDB table that deletes items that are older than the
- DCreate a DynamoDB stream that has an AWS Lambda function that reacts to data modifications.
How the community answered
(24 responses)- A83% (20)
- B4% (1)
- C8% (2)
- D4% (1)
Explanation
DynamoDB Time to Live (TTL) is a fully managed feature that automatically expires and deletes items based on a timestamp attribute you define. By enabling TTL and setting the TTL attribute in the application code, items older than the specified age are removed without the need for custom scheduling or Lambda functions, offering the least configuration effort.
Topics
Community Discussion
No community discussion yet for this question.