AWS Certified Developer – Associate — Question 174

A developer is building a new application that uses an Amazon DynamoDB table. The specification states that all items that are older than 48 hours must be removed.

Which solution will meet this requirement?

Answer options

Correct answer: C

Explanation

The correct answer is C because it correctly enables TTL on a Number data type attribute and sets the timestamp for expiration as the current timestamp plus 48 hours. Options A and B incorrectly involve using a local secondary index, which is not necessary for TTL, while D uses a String data type, which is not suitable for TTL expiration timestamps.