AWS - DynamoDBYou want to store session data that expires exactly 30 minutes after creation using DynamoDB TTL. Which approach correctly sets the TTL attribute?ASet TTL attribute to current Unix epoch time in seconds plus 1800 secondsBSet TTL attribute to current time as ISO string plus 30 minutesCSet TTL attribute to Boolean true when session expiresDSet TTL attribute to current Unix epoch time in milliseconds plus 1800000Check Answer
Step-by-Step SolutionSolution:Step 1: Calculate TTL value correctlyTTL attribute must be a Number in seconds, so add 1800 seconds (30 minutes) to current epoch seconds.Step 2: Eliminate incorrect formatsISO strings, Booleans, or milliseconds are invalid for TTL attribute in DynamoDB.Final Answer:Set TTL attribute to current Unix epoch time in seconds plus 1800 seconds -> Option AQuick Check:TTL = epoch seconds + 1800 [OK]Quick Trick: TTL value = current epoch seconds + 1800 for 30 minutes [OK]Common Mistakes:MISTAKESUsing ISO date strings instead of epoch secondsUsing milliseconds instead of secondsSetting TTL as Boolean instead of number
Master "DynamoDB" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes AWS Lambda - Lambda function concept - Quiz 10hard AWS Lambda - Creating a Lambda function - Quiz 9hard AWS Lambda - Lambda handler function structure - Quiz 15hard Auto Scaling - Launch templates - Quiz 11easy Auto Scaling - Scheduled scaling - Quiz 14medium Auto Scaling - Launch templates - Quiz 1easy Auto Scaling - Auto Scaling with ELB integration - Quiz 9hard DynamoDB - DynamoDB capacity modes (on-demand, provisioned) - Quiz 6medium DynamoDB - Partition key and sort key - Quiz 3easy Elastic Load Balancing - Network Load Balancer (NLB) - Quiz 13medium