Time to live (TTL) in AWS DynamoDB is a way to automatically delete items after a set expiration time. When you store an item, you add a TTL attribute with a timestamp. DynamoDB checks this timestamp against the current time. If the current time is greater than the TTL, the item is deleted automatically. This process helps keep your database clean by removing old or unused data without manual intervention. The deletion happens shortly after expiration, not exactly at the TTL time. This visual trace shows the item stored with TTL, time passing, and the item being deleted once expired.