AWS - DynamoDBWhich of the following is the correct way to enable TTL on a DynamoDB table?ACreate a Lambda function to delete expired itemsBSpecify the TTL attribute name and enable TTL in the table settingsCSet the table's read capacity to zeroDAdd a global secondary index with TTL enabledCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand TTL enabling processTTL is enabled by specifying the attribute name holding expiration timestamps in table settings.Step 2: Exclude incorrect methodsTTL is not enabled by indexes, capacity settings, or Lambda functions.Final Answer:Specify the TTL attribute name and enable TTL in the table settings -> Option BQuick Check:Enable TTL = set attribute name in table [OK]Quick Trick: Enable TTL by naming the expiration attribute in table settings [OK]Common Mistakes:MISTAKESTrying to enable TTL via indexesConfusing capacity settings with TTLUsing Lambda instead of built-in TTL
Master "DynamoDB" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS Lambda - Lambda concurrency and throttling - Quiz 13medium AWS Lambda - Why serverless matters - Quiz 12easy Auto Scaling - Scheduled scaling - Quiz 3easy Auto Scaling - Auto Scaling groups - Quiz 8hard CloudWatch - CloudWatch Logs - Quiz 12easy CloudWatch - Why monitoring matters - Quiz 5medium DynamoDB - Why DynamoDB for NoSQL - Quiz 7medium RDS and Relational Databases - Read replicas for performance - Quiz 11easy RDS and Relational Databases - Multi-AZ deployment for high availability - Quiz 15hard RDS and Relational Databases - RDS backup and snapshots - Quiz 8hard