A team trains an Apache MXNet digit classifier in SageMaker and wants (1) an alert if the model starts overfitting and (2) auditors to be able to review SageMaker API activity. What is the simplest solution with minimal code and steps?
Choose an answer
Tap an option to check your answer.
Correct answer: Enable AWS CloudTrail to record SageMaker API calls to S3; add code to emit a custom CloudWatch metric; create a CloudWatch alarm with SNS to notify on overfitting..
Why this is the answer
The correct solution addresses both requirements efficiently. Enabling AWS CloudTrail to record SageMaker API calls to S3 automatically provides a detailed log for auditors without needing custom code or Lambda functions. For detecting overfitting, the simplest approach is to add code within the training script to emit a custom CloudWatch metric (e.g., monitoring the difference between training and validation accuracy). A CloudWatch alarm can then be configured to trigger an SNS notification when this metric crosses a predefined threshold, indicating overfitting. Incorrect options: Creating a Lambda function to log SageMaker API calls to S3 is unnecessary; CloudTrail handles this natively and more comprehensively. Creating a Lambda function to send SageMaker API call logs to CloudTrail is redundant; CloudTrail already records API calls. Configuring an SNS topic to receive notifications when the model is overfitting is incomplete; it lacks the mechanism to detect overfitting (the custom CloudWatch metric and alarm).
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