An AWS Lambda function monitors ML model metrics. The engineering team needs to send an email when a metric exceeds a threshold. Which implementation meets this requirement?
Choose an answer
Tap an option to check your answer.
Correct answer: Log the metrics from Lambda to Amazon CloudWatch and configure a CloudWatch alarm to send the email..
Why this is the answer
The correct approach is to log metrics from Lambda to Amazon CloudWatch and configure a CloudWatch alarm. CloudWatch is designed for collecting and monitoring metrics, logs, and events. Lambda can easily publish custom metrics to CloudWatch. A CloudWatch alarm can then be set to trigger an action, such as sending an email notification via Amazon SNS, when a specified metric crosses a threshold. Logging metrics to AWS CloudTrail is incorrect because CloudTrail records API activity and events, not continuous metrics for monitoring. Using Amazon CloudFront for logging or rule configuration is incorrect as CloudFront is a content delivery network and not a monitoring or alerting service.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed