AWS Certified Developer – Associate — Question 96

A company caches session information for a web application in an Amazon DynamoDB table. The company wants an automated way to delete old items from the table.

What is the simplest way to do this?

Answer options

Correct answer: B

Explanation

The correct answer is B because enabling the Time To Live feature allows DynamoDB to automatically manage and delete expired items based on the specified attribute, making it the simplest solution. Option A requires manual intervention with a script, C involves a cumbersome process of creating and deleting tables daily, and D is incorrect because it does not leverage the built-in Time To Live functionality.