0
0
DynamoDBquery~5 mins

TTL attribute setup in DynamoDB - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AUnix timestamp in seconds
BBoolean true/false
CString containing a date
DISO 8601 formatted string
When does DynamoDB remove expired items after the TTL timestamp?
AWithin 48 hours after expiration
BOnly when manually deleted
CAfter 7 days
DImmediately at the timestamp
How many TTL attributes can you enable per DynamoDB table?
ATwo
BOne
CUnlimited
DNone
What happens if the TTL attribute is missing or empty for an item?
AItem causes an error
BItem expires immediately
CItem is deleted after 24 hours
DItem never expires
Which of the following is required to enable TTL on a DynamoDB table?
ASet a read capacity unit
BCreate a global secondary index
CSpecify the TTL attribute name
DEnable encryption
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.