AWS - DynamoDBIf a DynamoDB item has a TTL attribute set to a timestamp that is earlier than the current time, what is the expected behavior?AThe item remains in the table indefinitely until manually deleted.BThe item is immediately deleted as soon as the timestamp is reached.CThe item is archived to S3 for backup before deletion.DThe item becomes eligible for automatic deletion by DynamoDB's TTL process.Check Answer
Step-by-Step SolutionSolution:Step 1: Understand TTL expirationTTL marks items with a timestamp after which they become eligible for deletion.Step 2: Recognize deletion timingDynamoDB does not delete items immediately at expiration but marks them for eventual deletion.Final Answer:The item becomes eligible for automatic deletion by DynamoDB's TTL process. -> Option DQuick Check:TTL expiration triggers eligibility, not instant deletion [OK]Quick Trick: TTL marks items for deletion after expiry, not instant removal [OK]Common Mistakes:Assuming immediate deletion at expiration timeThinking expired items are archived automaticallyBelieving items stay forever despite TTL
Master "DynamoDB" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - API Gateway throttling - Quiz 4medium API Gateway - API Gateway throttling - Quiz 10hard AWS Lambda - Event triggers for Lambda - Quiz 1easy CloudWatch - Log groups and log streams - Quiz 10hard CloudWatch - CloudWatch Events (EventBridge) - Quiz 14medium DynamoDB - Creating a DynamoDB table - Quiz 4medium DynamoDB - Secondary indexes (GSI, LSI) - Quiz 15hard DynamoDB - DynamoDB capacity modes (on-demand, provisioned) - Quiz 8hard RDS and Relational Databases - Why managed databases matter - Quiz 6medium SNS and SQS - SNS and SQS integration pattern (fan-out) - Quiz 14medium