0
0
DynamoDBquery~20 mins

Why automatic expiration manages data lifecycle in DynamoDB - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
TTL Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does automatic expiration help manage data lifecycle in DynamoDB?

Imagine you have a table storing temporary session data. Which of the following best explains why enabling automatic expiration (TTL) is useful for managing data lifecycle?

AIt archives expired data to a separate database for analysis.
BIt encrypts expired data to prevent unauthorized access.
CIt automatically deletes expired items, reducing storage costs and keeping data relevant.
DIt backs up expired data to another table for long-term storage.
Attempts:
2 left
💡 Hint

Think about what happens to data you no longer need and how automatic expiration can help.

query_result
intermediate
2:00remaining
What is the output of a TTL-enabled DynamoDB table after expiration?

Given a DynamoDB table with TTL enabled on the attribute 'expireAt' (a timestamp), what will be the state of an item after its 'expireAt' time passes?

AThe item is moved to a separate expired items table.
BThe item is automatically deleted and no longer appears in query results.
CThe item remains but is marked as expired with a flag.
DThe item is archived and cannot be accessed.
Attempts:
2 left
💡 Hint

Consider what TTL does to expired items in the table.

📝 Syntax
advanced
2:30remaining
Identify the correct TTL attribute setting in DynamoDB table creation

Which of the following AWS CLI commands correctly enables TTL on a DynamoDB table with the attribute 'expireAt'?

Aaws dynamodb update-time-to-live --table-name Sessions --time-to-live-specification Enabled=true,AttributeName=expireAt
Baws dynamodb enable-ttl --table Sessions --attribute expireAt
Caws dynamodb set-ttl --table-name Sessions --ttl expireAt --enable
Daws dynamodb update-table --table-name Sessions --ttl Enabled expireAt
Attempts:
2 left
💡 Hint

Check the official AWS CLI command syntax for TTL updates.

optimization
advanced
2:00remaining
How does automatic expiration optimize DynamoDB table performance?

Which of the following best describes how automatic expiration (TTL) improves DynamoDB table performance?

ABy removing expired items, it reduces table size, which lowers read and write latency.
BBy archiving expired items to S3, it improves table throughput.
CBy indexing expired items separately, it speeds up queries on active data.
DBy compressing expired items, it saves storage space without deleting data.
Attempts:
2 left
💡 Hint

Think about how fewer items in a table affect query speed.

🔧 Debug
expert
3:00remaining
Why is TTL not deleting expired items in this DynamoDB table?

A developer enabled TTL on the 'expireAt' attribute, but expired items remain in the table after their expiration time. What is the most likely reason?

AThe 'expireAt' attribute is a string instead of a number.
BThe table does not have a primary key defined.
CThe TTL feature requires manual deletion of expired items.
DThe 'expireAt' attribute values are not in Unix epoch time format (seconds since 1970).
Attempts:
2 left
💡 Hint

Check the required format for TTL attribute values.