AWS Certified Developer – Associate (DVA-C02) — Question 115

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 automatically deletes items after a specified timestamp, simplifying the process. Option A requires manual intervention and management of a script, which is less efficient. Option C unnecessarily creates new tables daily, leading to resource waste, while option D does not activate the Time To Live feature, making it ineffective for automated deletions.