AWS - DynamoDBYou want to build a system that reacts only to new attribute values of updated items in DynamoDB. Which StreamViewType should you choose and why?AOLD_IMAGE, because it captures the previous state before changesBNEW_AND_OLD_IMAGES, because it captures both states for comparisonCNEW_IMAGE, because it captures only the new state after changesDKEYS_ONLY, because it captures only the keys of changed itemsCheck Answer
Step-by-Step SolutionSolution:Step 1: Define requirementThe system needs only the new attribute values after updates.Step 2: Match StreamViewType to requirementNEW_IMAGE provides only the new state after changes, ideal for this use case.Final Answer:NEW_IMAGE, because it captures only the new state after changes -> Option CQuick Check:New attribute tracking = NEW_IMAGE [OK]Quick Trick: Use NEW_IMAGE to get only updated item states [OK]Common Mistakes:Choosing OLD_IMAGE when new data is neededOvercomplicating with NEW_AND_OLD_IMAGESUsing KEYS_ONLY expecting attribute data
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