Which statement best describes how DynamoDB Streams captures changes in a DynamoDB table?
Think about how a stream works as a sequence of events.
DynamoDB Streams records each data modification as a stream record in the order they occur, allowing applications to process changes sequentially.
After enabling DynamoDB Streams on a table, what is the immediate effect on the table's behavior?
Consider what DynamoDB Streams stores and for how long.
When enabled, DynamoDB Streams records item-level changes as stream records and retains them for 24 hours for processing.
You want to process DynamoDB Streams records using AWS Lambda. Which architecture ensures that each stream record is processed exactly once and in order?
Think about how to maintain order and avoid duplicate processing.
Setting batch size to 1 and enabling 'bisect on function error' helps Lambda process each record exactly once and in order, handling errors gracefully.
Which IAM policy action is required to allow a Lambda function to read from a DynamoDB Stream?
Focus on permissions related to reading stream data.
To read from DynamoDB Streams, the Lambda function needs permissions like "dynamodb:DescribeStream" and "dynamodb:GetRecords" to access stream details and records.
DynamoDB Streams retains records for 24 hours. What is the best practice to avoid data loss if your stream processing application is down for longer than 24 hours?
Consider how to extend stream retention beyond the default limit.
DynamoDB Streams retention is fixed at 24 hours. Integrating with Kinesis Data Streams allows longer retention and replay, preventing data loss during downtime.