TTL is a feature that automatically deletes expired items from a DynamoDB table after a specified timestamp, helping manage storage and reduce costs.
Click to reveal answer
beginner
How does TTL help in managing data in AWS DynamoDB?
TTL removes items that are no longer needed by automatically deleting them after their expiration time, keeping the table clean and saving storage space.
Click to reveal answer
intermediate
Which attribute type must the TTL attribute be in DynamoDB?
The TTL attribute must be a Number type representing the expiration time as a Unix epoch timestamp in seconds.
Click to reveal answer
intermediate
What happens if you disable TTL on a DynamoDB table?
Disabling TTL stops automatic deletion of expired items, but existing expired items remain until manually deleted or overwritten.
Click to reveal answer
advanced
Can TTL guarantee immediate deletion of expired items in DynamoDB?
No, TTL deletion is eventually consistent and can take up to 48 hours to remove expired items after their expiration time.
Click to reveal answer
What data type should the TTL attribute be in DynamoDB?
ANumber (Unix epoch time in seconds)
BString (ISO date format)
CBoolean
DBinary
✗ Incorrect
TTL attribute must be a Number representing the expiration time as Unix epoch time in seconds.
What happens when an item reaches its TTL expiration time in DynamoDB?
AIt is immediately deleted.
BIt is marked as expired but not deleted.
CIt is eventually deleted within 48 hours.
DIt is archived automatically.
✗ Incorrect
TTL deletion is eventually consistent and can take up to 48 hours after expiration.
Which AWS service uses TTL to automatically remove expired data?
AAmazon S3
BAWS Lambda
CAmazon EC2
DAmazon DynamoDB
✗ Incorrect
Amazon DynamoDB supports TTL to automatically delete expired items.
If TTL is disabled on a DynamoDB table, what happens to expired items?