In DynamoDB, change tracking is used with streams. What is the main benefit of enabling change tracking for reacting to data changes?
Think about how applications can respond immediately after data changes.
Change tracking via DynamoDB streams captures data modifications and sends them as events. This enables applications to react instantly to changes.
Given a DynamoDB table with a stream enabled, an item is updated from {"id": "1", "status": "pending"} to {"id": "1", "status": "completed"}. What does the stream event record contain?
Stream event includes OldImage and NewImage attributes representing the item before and after the update.
Think about what information is needed to understand what changed.
DynamoDB streams provide both the old and new images of the item to show exactly what changed.
Choose the correct AWS CLI command to enable streams on a DynamoDB table named 'Orders' with NEW_AND_OLD_IMAGES view type.
Check the exact syntax for the update-table command and stream specification parameters.
The correct command uses 'update-table' with '--stream-specification' including 'StreamEnabled=true' and 'StreamViewType=NEW_AND_OLD_IMAGES'.
You want to minimize processing delay when reacting to changes in a high-traffic DynamoDB table. Which approach helps optimize reaction time?
Consider how to get the fastest reaction to each change.
Setting batch size to 1 triggers Lambda for each record immediately, minimizing delay.
You have a Lambda function triggered by DynamoDB streams to react to item updates. Sometimes, updates are missed. Which is the most likely cause?
Think about how Lambda handles batches and errors.
If Lambda processes large batches and an error occurs, the entire batch may be retried or some records may be skipped, causing missed updates.