
Answer-first summary for fast verification
Answer: Enable Lambda to log to CloudWatch, use Logs Insights to query unique customers with quantity 0, and add results to a CloudWatch dashboard.
Option A is the correct answer. This approach involves enhancing the existing Lambda function to log relevant information about orders (specifically those with order quantity 0) to CloudWatch Logs. The developer can then use CloudWatch Logs Insights to query these logs for unique customer counts and visualize this data on a CloudWatch dashboard. This solution is effective as it leverages existing Lambda and CloudWatch capabilities, making it feasible to implement without significant alterations to the current system.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company utilizes DynamoDB for its order management system, with a Lambda function processing orders from a DynamoDB stream. How should a developer create a dashboard to display the daily count of unique customers affected by orders with a quantity of 0?
A
Enable Lambda to log to CloudWatch, use Logs Insights to query unique customers with quantity 0, and add results to a CloudWatch dashboard.
B
Use Athena to analyze CloudTrail logs for API calls, identify unique customers with quantity 0, and visualize in a CloudWatch dashboard.
C
Direct Lambda to send events to EventBridge, establish a rule for daily unique customer counts with quantity 0, and target a CloudWatch dashboard.
D
Activate custom CloudWatch metrics for the DynamoDB stream, set an alarm for daily unique customer counts with quantity 0, and include in a CloudWatch dashboard.