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?

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.