AWS Certified Developer - Associate

Databases

DynamoDB TTL

In this lesson, we explore the DynamoDB TTL (Time to Live) feature, which automatically manages data lifecycle by deleting expired items from your table.

To leverage this feature, you designate an attribute in your table (for example, "expiresAt") that contains a timestamp in epoch format. When the current time exceeds the timestamp stored in the "expiresAt" attribute, DynamoDB marks the corresponding item for deletion. The actual removal of the item typically occurs within 48 hours and is processed at no additional cost.

Note

Enabling DynamoDB TTL helps reduce storage costs and improves query performance by automatically purging outdated data.

Watch Video

Watch video content

Previous
DynamoDB Transactions