AWS Certified Machine Learning Engineer – Associate (MLA-C01) — Question 61
A company is using an AWS Lambda function to monitor the metrics from an ML model. An ML engineer needs to implement a solution to send an email message when the metrics breach a threshold.
Which solution will meet this requirement?
Answer options
- A. Log the metrics from the Lambda function to AWS CloudTrail. Configure a CloudTrail trail to send the email message.
- B. Log the metrics from the Lambda function to Amazon CloudFront. Configure an Amazon CloudWatch alarm to send the email message.
- C. Log the metrics from the Lambda function to Amazon CloudWatch. Configure a CloudWatch alarm to send the email message.
- D. Log the metrics from the Lambda function to Amazon CloudWatch. Configure an Amazon CloudFront rule to send the email message.
Correct answer: C
Explanation
The correct answer is C because logging the metrics in Amazon CloudWatch allows for the configuration of alarms that can monitor specific thresholds and trigger email notifications. Options A and B incorrectly suggest using CloudTrail and CloudFront, which are not designed for this purpose. Option D also misuses CloudFront, which does not provide the necessary alerting functionality.