ShopEZ runs SageMaker Model Monitor nightly. Monitoring outputs JSON results to s3://shopez-monitoring/results/`<model-package-id>`/run-YYYYMMDD.json and includes a field constraint_violations_count. The team wants an automated flow that starts an existing SageMaker Pipeline called 'retrain-pipeline' when constraint_violations_count > 0. Which architecture most directly and reliably implements that automated retrain trigger?
Choose an answer
Tap an option to check your answer.
Correct answer: Create an EventBridge rule for S3 Object Created events scoped to the monitoring results prefix; set a Lambda function as the target. The Lambda reads the JSON, checks constraint_violations_count and, if > 0, calls StartPipelineExecution on the 'retrain-pipeline' with appropriate pipeline parameters and IAM permissions..
Why this is the answer
This option provides a direct and reliable automated flow. An EventBridge rule triggered by S3 object creation is efficient for detecting new monitoring results. A Lambda function can then parse the JSON output, specifically checking the constraintviolationscount. If the condition is met, the Lambda can directly invoke StartPipelineExecution for the SageMaker Pipeline. The other options are less suitable: SageMaker Model Monitor does not expose a built-in CloudWatch metric for ConstraintViolations that directly reflects the specific JSON field, making a CloudWatch alarm impractical for this custom condition. Also, SageMaker Pipelines cannot be directly subscribed to an SNS topic to start execution. A CodePipeline job that periodically polls S3 is less efficient and responsive than an event-driven approach. Triggering a new SageMaker TrainingJob directly bypasses the existing SageMaker Pipeline, which is designed for the retraining workflow. There is no StartSageMakerPipelineOnViolation option available in SageMaker Model Monitor configurations. Model Monitor itself does not have built-in functionality to directly trigger SageMaker Pipelines based on specific violation counts.
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