Stream Data Capture Options
DynamoDB Streams supports four configuration options to control the amount of data captured:- Keys Only: Only the key attributes of the modified items are recorded.
- New Image: Captures the entire item as it appears after the modification.
- Old Image: Records the entire item as it appeared before being modified.
- New and Old Image: Records both the previous and current versions of the item.
Choose “new and old image” for complete detail when every change is critical to your application. Otherwise, select the option that best matches your data requirements.

How It Works in Practice
Consider a scenario where an item in your DynamoDB table changes its status from “In Progress” to “completed.” When this change occurs, the event is captured in the DynamoDB stream. Any AWS service listening to this stream—be it an AWS Lambda function or another service like Data Firehose—can then automatically react to this update. Below is a JSON snippet representing the change:Key Features of DynamoDB Streams
DynamoDB Streams offers several notable features:- Time-Ordered Records: Stream records are stored in the exact order events occur.
- Create, Update, and Delete Tracking: Captures all changes made to table items.
- 24-Hour Retention: Recorded events are available for up to 24 hours for processing.
- Seamless AWS Lambda Integration: Easily trigger AWS Lambda functions to create automated workflows based on data changes.
Leveraging these features, you can build reactive, event-driven applications that respond in real time to changes in your DynamoDB tables.
