Data Store Management

A DynamoDB table has TTL enabled on a Number attribute containing Unix epoch timestamps in milliseconds. Items whose intended expiration was a week ago remain readable; what should the engineer do to make these items eligible for TTL deletion?

Show the answer

Correct answerD. Convert the attribute values to epoch seconds.

AWhy not this: The stored values indicate future expiration dates when interpreted as seconds, so background deletion will not resolve the error.

BWhy not this: DynamoDB TTL has no setting that changes the timestamp unit to milliseconds.

CWhy not this: TTL requires a Number attribute; ISO 8601 strings are not valid TTL expiration values.

DWhy this is right: TTL interprets numeric timestamps as epoch seconds, so converting the values makes the intended expiration dates eligible.

DynamoDB TTL requires a Number containing Unix epoch time in seconds; millisecond values represent dates far in the future. Background deletion is asynchronous, but waiting does not correct an incorrectly encoded expiration time.