0
0
DynamoDBquery~5 mins

TTL with Streams for archival 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
intermediate
How does DynamoDB Streams help with archival when using TTL?
DynamoDB Streams capture item changes, including deletions caused by TTL expiration. This allows you to archive deleted items by processing the stream before the data is lost.
Click to reveal answer
intermediate
What is the typical flow for archiving data using TTL and Streams?
1. Enable TTL on the table to auto-delete expired items.<br>2. Enable DynamoDB Streams to capture deletions.<br>3. Use a Lambda function triggered by the stream to copy deleted items to an archive storage like S3.
Click to reveal answer
advanced
Why is it important to process DynamoDB Streams quickly when using TTL for archival?
Because TTL deletes items automatically and the stream records are only kept for 24 hours, processing streams quickly ensures you capture and archive data before it disappears.
Click to reveal answer
beginner
Can TTL be used to directly archive data in DynamoDB?
No, TTL only deletes expired items. Archival requires using DynamoDB Streams to capture deletions and then copying data to another storage system.
Click to reveal answer
What happens to an item in DynamoDB when its TTL expires?
AIt is marked as expired but remains in the table.
BIt is archived automatically to S3.
CIt is automatically deleted from the table.
DIt triggers an alert but stays in the table.
Which DynamoDB feature allows you to capture item deletions caused by TTL?
ADynamoDB Streams
BGlobal Secondary Index
CProvisioned Throughput
DDynamoDB Accelerator (DAX)
What is a common service used to process DynamoDB Streams for archival?
AAmazon EC2
BAWS Lambda
CAmazon RDS
DAWS Glue
How long are DynamoDB Stream records retained?
A24 hours
B7 days
C30 days
DIndefinitely
Which of the following is NOT true about TTL in DynamoDB?
ATTL deletes expired items automatically.
BTTL requires enabling DynamoDB Streams for archival.
CTTL helps manage data lifecycle by removing old data.
DTTL can trigger a Lambda function directly.
Explain how TTL and DynamoDB Streams work together to enable data archival.
Think about how automatic deletion and event capture combine.
You got /4 concepts.
    Describe the steps to set up a DynamoDB table for archival using TTL and Streams.
    Consider configuration and processing flow.
    You got /4 concepts.