Q73 — AWS DVA-C02 Ch.2
Question 73 of 100 | ← Chapter 2
A developer is building a serverless application that requires an AWS Lambda function to process any changes to an Amazon DynamoDB table. How should the developer configure the Lambda function to detect changes to the DynamoDB table?
- A. Create an Amazon Kinesis data stream and attach it to the DynamoDB table. Create a trigger to connect the data stream to the Lambda function.
- B. Create an Amazon EventBridge rule to invoke the Lambda function periodically. Connect the Lambda function to the DynamoDB table to detect changes.
- C. Enable DynamoDB Streams on the table. Create a trigger to connect the DynamoDB Stream to the Lambda function. ✓
- D. Create an Amazon Kinesis Data Firehose delivery stream and attach it to the DynamoDB table. Configure the delivery stream destination as the Lambda function.
Correct Answer: C. Enable DynamoDB Streams on the table. Create a trigger to connect the DynamoDB Stream to the Lambda function.
Explanation
DynamoDB Streams captures item-level modifications (inserts, updates, deletes) in near real time and emits them as ordered event records. Lambda natively supports DynamoDB Streams as an event source: when enabled, changes automatically trigger the Lambda function with relevant event data. This provides true real-time, low-latency change detection. Option A and D use Kinesis services not purpose-built for DynamoDB change capture and introduce unnecessary complexity and latency. Option B relies on polling via EventBridge, which cannot guarantee timely or accurate detection of individual changes. Thus, Option C is the most direct, efficient, and supported solution.