Bird
0
0

Which of the following is the correct way to enable TTL on a DynamoDB table?

easy📝 Configuration Q3 of 15
AWS - DynamoDB
Which of the following is the correct way to enable TTL on a DynamoDB table?
ACreate a Lambda function to delete expired items
BSpecify the TTL attribute name and enable TTL in the table settings
CSet the table's read capacity to zero
DAdd a global secondary index with TTL enabled
Step-by-Step Solution
Solution:
  1. Step 1: Understand TTL enabling process

    TTL is enabled by specifying the attribute name holding expiration timestamps in table settings.
  2. Step 2: Exclude incorrect methods

    TTL is not enabled by indexes, capacity settings, or Lambda functions.
  3. Final Answer:

    Specify the TTL attribute name and enable TTL in the table settings -> Option B
  4. Quick Check:

    Enable TTL = set attribute name in table [OK]
Quick Trick: Enable TTL by naming the expiration attribute in table settings [OK]
Common Mistakes:
MISTAKES
  • Trying to enable TTL via indexes
  • Confusing capacity settings with TTL
  • Using Lambda instead of built-in TTL

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes