Bird
0
0

If a DynamoDB item has a TTL attribute set to a timestamp that is earlier than the current time, what is the expected behavior?

medium📝 service behavior Q4 of 15
AWS - DynamoDB
If a DynamoDB item has a TTL attribute set to a timestamp that is earlier than the current time, what is the expected behavior?
AThe item remains in the table indefinitely until manually deleted.
BThe item is immediately deleted as soon as the timestamp is reached.
CThe item is archived to S3 for backup before deletion.
DThe item becomes eligible for automatic deletion by DynamoDB's TTL process.
Step-by-Step Solution
Solution:
  1. Step 1: Understand TTL expiration

    TTL marks items with a timestamp after which they become eligible for deletion.
  2. Step 2: Recognize deletion timing

    DynamoDB does not delete items immediately at expiration but marks them for eventual deletion.
  3. Final Answer:

    The item becomes eligible for automatic deletion by DynamoDB's TTL process. -> Option D
  4. Quick Check:

    TTL expiration triggers eligibility, not instant deletion [OK]
Quick Trick: TTL marks items for deletion after expiry, not instant removal [OK]
Common Mistakes:
  • Assuming immediate deletion at expiration time
  • Thinking expired items are archived automatically
  • Believing items stay forever despite TTL

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes