Bird
0
0

You enabled TTL on attribute expiry but items are not deleting after expiration. What is the most likely cause?

medium📝 Debug Q14 of 15
AWS - DynamoDB
You enabled TTL on attribute expiry but items are not deleting after expiration. What is the most likely cause?
ADynamoDB table is in a different region
BTTL attribute <code>expiry</code> is missing or has wrong data type
CTTL only works on primary key attributes
DTTL requires manual activation every 24 hours
Step-by-Step Solution
Solution:
  1. Step 1: Check TTL attribute correctness

    If the TTL attribute is missing or not a Number with epoch seconds, TTL won't delete items.
  2. Step 2: Verify other options

    TTL works regardless of region, does not require manual activation, and does not need to be primary key.
  3. Final Answer:

    TTL attribute expiry is missing or has wrong data type -> Option B
  4. Quick Check:

    Wrong TTL attribute = no deletion [OK]
Quick Trick: TTL attribute must exist and be correct type [OK]
Common Mistakes:
  • Thinking TTL depends on table region
  • Believing TTL needs manual daily activation
  • Assuming TTL attribute must be primary key

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes