Q11 — AWS DVA-C02 Ch.3
Question 11 of 100 | ← Chapter 3
When new items are inserted into a DynamoDB table, how can a developer notify users without impacting the provisioned throughput?
- A. Configure a DynamoDB stream to trigger a Lambda function that sends SNS notifications to users. ✓
- B. Schedule Amazon CloudWatch Events to periodically trigger a Lambda function that scans the DynamoDB table.
- C. Run a polling application that queries the DynamoDB table every second and sends SNS notifications to users.
- D. Embed a Lambda notification function directly in DynamoDB and configure DynamoDB to trigger the embedded Lambda function on changes.
Correct Answer: A. Configure a DynamoDB stream to trigger a Lambda function that sends SNS notifications to users.
Explanation
DynamoDB Streams allow developers to listen for data modifications (e.g., new item inserts) in a DynamoDB table and asynchronously trigger Lambda functions in response. This mechanism does not consume provisioned throughput capacity because it operates independently of read/write operations. The triggered Lambda function can then perform logic such as sending SNS notifications. Therefore, option A is correct as it enables user notifications without affecting DynamoDB’s provisioned throughput.