Bird
0
0

Given a DynamoDB Stream enabled with StreamViewType=NEW_IMAGE, what will an AWS Lambda function receive when an item is updated?

medium📝 query result Q13 of 15
DynamoDB - with Serverless
Given a DynamoDB Stream enabled with StreamViewType=NEW_IMAGE, what will an AWS Lambda function receive when an item is updated?
AOnly the keys of the updated item
BThe entire item before and after the update
COnly the new version of the item after the update
DNo data, only a notification that an update occurred
Step-by-Step Solution
Solution:
  1. Step 1: Understand StreamViewType NEW_IMAGE meaning

    NEW_IMAGE sends only the new version of the item after the change.
  2. Step 2: Determine what Lambda receives on update

    Lambda gets the updated item data, not the old version or just keys.
  3. Final Answer:

    Only the new version of the item after the update -> Option C
  4. Quick Check:

    NEW_IMAGE = new item data only [OK]
Quick Trick: NEW_IMAGE sends only updated item data to Lambda [OK]
Common Mistakes:
MISTAKES
  • Confusing NEW_IMAGE with NEW_AND_OLD_IMAGES
  • Assuming keys only are sent
  • Thinking Lambda gets no data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More DynamoDB Quizzes