Bird
0
0

You want to build a system that reacts only to new attribute values of updated items in DynamoDB. Which StreamViewType should you choose and why?

hard📝 Application Q8 of 15
AWS - DynamoDB
You 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 changes
BNEW_AND_OLD_IMAGES, because it captures both states for comparison
CNEW_IMAGE, because it captures only the new state after changes
DKEYS_ONLY, because it captures only the keys of changed items
Step-by-Step Solution
Solution:
  1. Step 1: Define requirement

    The system needs only the new attribute values after updates.
  2. Step 2: Match StreamViewType to requirement

    NEW_IMAGE provides only the new state after changes, ideal for this use case.
  3. Final Answer:

    NEW_IMAGE, because it captures only the new state after changes -> Option C
  4. Quick 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 needed
  • Overcomplicating with NEW_AND_OLD_IMAGES
  • Using KEYS_ONLY expecting attribute data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes