Bird
0
0

If a DynamoDB table has TTL enabled on attribute 'expireAt', what will happen if an item has no 'expireAt' attribute?

medium📝 service behavior Q5 of 15
AWS - DynamoDB
If a DynamoDB table has TTL enabled on attribute 'expireAt', what will happen if an item has no 'expireAt' attribute?
AThe item will never expire automatically
BThe item will expire immediately
CThe item will cause an error on write
DThe item will be deleted after 24 hours
Step-by-Step Solution
Solution:
  1. Step 1: Understand TTL attribute requirement

    TTL only applies to items with the TTL attribute set.
  2. Step 2: Behavior for items missing TTL attribute

    Items without the TTL attribute do not expire automatically.
  3. Final Answer:

    The item will never expire automatically -> Option A
  4. Quick Check:

    Missing TTL attribute = no automatic expiry [OK]
Quick Trick: No TTL attribute means no automatic expiration [OK]
Common Mistakes:
MISTAKES
  • Assuming missing attribute causes immediate expiry
  • Thinking missing attribute causes errors
  • Believing items expire after fixed time

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes