Data Ingestion and Transformation
A pipeline consumes DynamoDB Streams records to compare item attributes before and after each update. Which stream view type provides the required data?
Show the answer
Correct answerA. NEW_AND_OLD_IMAGES
AWhy this is right: NEW_AND_OLD_IMAGES includes both item states needed to compare attributes across an update.
BWhy not this: NEW_IMAGE includes the item after modification but omits its previous state.
CWhy not this: KEYS_ONLY includes key attributes but not the complete item states needed for comparison.
DWhy not this: OLD_IMAGE includes the item before modification but omits its resulting state.
NEW_AND_OLD_IMAGES includes the item attributes before and after a modification. NEW_IMAGE provides only the resulting item, so it cannot independently support the comparison.