AWS Certified Developer – Associate — Question 86

A developer supports an application that accesses data in an Amazon DynamoDB table. One of the item attributes is expiration Date in the timestamp format. The application uses this attribute to find items, archive them, and remove them from the table based on the timestamp value.

The application will be decommissioned soon, and the developer must find another way to implement this functionality. The developer needs a solution that will require the least amount of code to write.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

The correct answer is A because enabling TTL on the expirationDate attribute allows DynamoDB to automatically delete items when they expire, requiring minimal code. The other options involve creating multiple Lambda functions and managing additional components like DynamoDB streams or EventBridge, which increases complexity and coding requirements.