Question 1 · choose 1
A SageMaker AI pipeline processes data, trains a model and evaluates it. The model should be registered in the SageMaker Model Registry only when its evaluation RMSE is below a threshold; otherwise the run should end without registering anything. Which pipeline step should the ML engineer add before the registration step?
- AA callback step that waits for a message on an Amazon SQS queue
- BA condition step that checks the RMSE against the threshold
- CStep caching on the training step
- DA transform step that scores the test set again
Show the answer and why
AA callback step that waits for a message on an Amazon SQS queue
Incorrect
A callback step adds processes outside SageMaker Pipelines to the workflow. It does not compare a metric with a threshold by itself.
BA condition step that checks the RMSE against the threshold
Correct
A condition step evaluates step properties, such as a metric produced by the evaluation step, and decides which steps run next, so registration happens only when the condition is met.
CStep caching on the training step
Incorrect
Caching reuses the output of an earlier successful run with the same inputs. It saves time but does not decide whether to register.
DA transform step that scores the test set again
Incorrect
A transform step runs batch transform. Scoring the data again does not stop a weak model from being registered.
Quality gates in SageMaker Pipelines are condition steps: evaluate, compare with a threshold, then register (and later approve and deploy) only models that pass.
AWS documentation