TTL in DynamoDB is a feature that lets you set an expiration time on items using a timestamp attribute. When you create an item, you add a TTL attribute with a future time. DynamoDB checks this TTL over time and deletes the item automatically when the current time passes the TTL. This is useful for sessions that expire, logs that should be cleaned up, or cache data that should be removed after some time. The execution table shows that at creation, the TTL is not expired, so the item stays. After time passes and TTL expires, DynamoDB deletes the item automatically. Variables like the item existence and TTL expired status change accordingly. Beginners often wonder why deletion is not immediate; it's because TTL is a future timestamp and deletion happens only after that time. If TTL is missing, the item never expires. TTL is a simple way to keep your database clean without manual deletes.