Bird
0
0

A developer set TTL attribute with timestamps in milliseconds instead of seconds. What issue will this cause?

medium📝 Debug Q7 of 15
AWS - DynamoDB
A developer set TTL attribute with timestamps in milliseconds instead of seconds. What issue will this cause?
ADynamoDB will throw a syntax error
BItems will expire immediately
CItems will expire after 30 days
DItems will not expire because timestamps are too large
Step-by-Step Solution
Solution:
  1. Step 1: Understand TTL timestamp format

    TTL expects epoch time in seconds, not milliseconds.
  2. Step 2: Effect of using milliseconds

    Milliseconds timestamps are much larger, so DynamoDB sees them as far future dates, preventing expiry.
  3. Final Answer:

    Items will not expire because timestamps are too large -> Option D
  4. Quick Check:

    TTL timestamps must be in seconds [OK]
Quick Trick: TTL timestamps must be in seconds, not milliseconds [OK]
Common Mistakes:
MISTAKES
  • Using milliseconds instead of seconds
  • Expecting immediate expiry with wrong units
  • Assuming DynamoDB throws errors for wrong timestamp

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes