Bird
0
0

If a DynamoDB Stream is set with StreamViewType NEW_AND_OLD_IMAGES, what will a stream record contain after a delete operation?

medium📝 Predict Output Q5 of 15
AWS - DynamoDB
If 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 delete
BOnly the new image of the deleted item
CBoth new and old images of the deleted item
DOnly the old image of the deleted item
Step-by-Step Solution
Solution:
  1. Step 1: Understand NEW_AND_OLD_IMAGES behavior on delete

    On delete, only the old image exists because the item is removed.
  2. Step 2: Identify stream record content

    The stream record contains only the old image of the deleted item.
  3. Final Answer:

    Only the old image of the deleted item -> Option D
  4. Quick 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 delete
  • Thinking both images exist after delete
  • Assuming no data recorded on delete

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes