Recall & Review
beginner
What does TTL stand for in DynamoDB?
TTL stands for Time To Live. It is a feature that automatically deletes expired items from a DynamoDB table.
Click to reveal answer
beginner
How do you enable TTL on a DynamoDB table?
You enable TTL by specifying a TTL attribute name in the table settings. This attribute stores the expiration time as a Unix timestamp.
Click to reveal answer
beginner
What type of value should the TTL attribute hold?
The TTL attribute should hold a Unix epoch timestamp in seconds, indicating when the item should expire.
Click to reveal answer
intermediate
Does DynamoDB delete expired items immediately after the TTL timestamp?
No, DynamoDB deletes expired items within 48 hours after the expiration time. The deletion is eventually consistent.
Click to reveal answer
intermediate
Can you use TTL on any attribute in DynamoDB?
No, TTL must be enabled on a single attribute per table, and that attribute must contain the expiration timestamp.
Click to reveal answer
What data type should the TTL attribute in DynamoDB be?
✗ Incorrect
The TTL attribute must be a Unix timestamp in seconds representing the expiration time.
When does DynamoDB remove expired items after the TTL timestamp?
✗ Incorrect
DynamoDB removes expired items within 48 hours after the TTL timestamp, not immediately.
How many TTL attributes can you enable per DynamoDB table?
✗ Incorrect
You can enable TTL on only one attribute per DynamoDB table.
What happens if the TTL attribute is missing or empty for an item?
✗ Incorrect
If the TTL attribute is missing or empty, the item does not expire.
Which of the following is required to enable TTL on a DynamoDB table?
✗ Incorrect
You must specify the TTL attribute name to enable TTL on a DynamoDB table.
Explain how to set up TTL on a DynamoDB table and what type of data the TTL attribute should contain.
Think about the attribute name and the format of the expiration time.
You got /4 concepts.
Describe what happens to items in DynamoDB after their TTL expiration time passes.
Consider the timing and consistency of the deletion process.
You got /4 concepts.