0
0
AWScloud~5 mins

Time to live (TTL) for expiration in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Time to Live (TTL) in AWS DynamoDB?
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
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.
Which AWS service uses TTL to automatically remove expired data?
AAmazon S3
BAWS Lambda
CAmazon EC2
DAmazon DynamoDB
If TTL is disabled on a DynamoDB table, what happens to expired items?
AThey remain until manually deleted.
BThey are deleted immediately.
CThey are archived.
DThey are moved to a different table.
Why is TTL useful in DynamoDB?
ATo encrypt data automatically.
BTo reduce storage costs by removing expired data.
CTo increase read capacity.
DTo backup data automatically.
Explain how TTL works in AWS DynamoDB and why it is useful.
Think about how expired data is handled automatically.
You got /4 concepts.
    Describe the steps to enable TTL on a DynamoDB table and what data type the TTL attribute must have.
    Focus on configuration and attribute requirements.
    You got /4 concepts.