Audit an order-status change by comparing the value before and after the update.
A Lambda function needs both images in each stream record.
Which DynamoDB Streams view type is most appropriate?
Select NEW_AND_OLD_IMAGES for the DynamoDB Streams StreamViewType.
Detailed explanation
The new item is available, but the previous value is missing.
The new item is available, but the previous value is missing.
Only keys are included, so the status values cannot be compared.
Only keys are included, so the status values cannot be compared.
The previous item is available, but the updated value is missing.
The previous item is available, but the updated value is missing.
Both item images are included and can be compared by an audit or diff process.
Both item images are included and can be compared by an audit or diff process.
Check official documentation
Compare the following points with the official documentation.
DynamoDB StreamsのStreamViewTypeと各イメージの公式説明を確認する。
What to confirm
キーのみ・新イメージ・旧イメージ・両方の情報量の違いを説明できる。
Key points
- StreamViewType
- NEW_AND_OLD_IMAGES
- Audit
- Diff
Notes
- Environment: AWS公式DEA-C01試験ガイドと各サービスの公式ドキュメントの確認
- Confirm current AWS service behavior in the official DEA-C01 documentation.
Foundation review
Information level
More images improve audit context but increase event size and downstream processing.
Change evidence
Before-and-after data lets the audit process determine exactly which field changed.