AWS - DynamoDBIf a DynamoDB Stream is set with StreamViewType NEW_AND_OLD_IMAGES, what will a stream record contain after a delete operation?ANo images are recorded on deleteBOnly the new image of the deleted itemCBoth new and old images of the deleted itemDOnly the old image of the deleted itemCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand NEW_AND_OLD_IMAGES behavior on deleteOn delete, only the old image exists because the item is removed.Step 2: Identify stream record contentThe stream record contains only the old image of the deleted item.Final Answer:Only the old image of the deleted item -> Option DQuick Check:Delete event with NEW_AND_OLD_IMAGES = old image only [OK]Quick Trick: Delete events have only old image in NEW_AND_OLD_IMAGES streams [OK]Common Mistakes:Expecting new image on deleteThinking both images exist after deleteAssuming no data recorded on delete
Master "DynamoDB" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - Request and response mapping - Quiz 13medium API Gateway - Request and response mapping - Quiz 15hard AWS Lambda - Lambda pricing model - Quiz 8hard AWS Lambda - Environment variables in Lambda - Quiz 12easy AWS Lambda - Lambda execution model - Quiz 3easy CloudWatch - CloudWatch dashboards - Quiz 15hard DynamoDB - Creating a DynamoDB table - Quiz 13medium Elastic Load Balancing - Cross-zone load balancing - Quiz 14medium Elastic Load Balancing - Application Load Balancer (ALB) - Quiz 14medium SNS and SQS - SNS and SQS integration pattern (fan-out) - Quiz 12easy