DBS-C01 · Question #213
A company stores session history for its users in an Amazon DynamoDB table. The company has a large user base and generates large amounts of session data. Teams analyze the session data for 1 week…
The correct answer is D. Enable TTL on the DynamoDB table and set a Number data type as the TTL attribute. Textbook question for TTL - https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html
Question
A company stores session history for its users in an Amazon DynamoDB table. The company has a large user base and generates large amounts of session data. Teams analyze the session data for 1 week, and then the data is no longer needed. A database specialist needs to design an automated solution to purge session data that is more than 1 week old. Which strategy meets these requirements with the MOST operational efficiency?
Options
- ACreate an AWS Step Functions state machine with a DynamoDB DeleteItem operation that uses
- BCreate an AWS Lambda function to delete items older than a week from the DynamoDB table.
- CEnable Amazon DynamoDB Streams on the table. Use a stream to invoke an AWS Lambda
- DEnable TTL on the DynamoDB table and set a Number data type as the TTL attribute.
How the community answered
(35 responses)- A3% (1)
- B9% (3)
- C14% (5)
- D74% (26)
Explanation
Textbook question for TTL - https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/TTL.html
Topics
Community Discussion
No community discussion yet for this question.