Conditional Execution in SageMaker Pipelines
A team uses SageMaker Pipelines to train and register a model. They want to conditionally run a hyperparameter tuning step only if the data quality check passes. Which pipeline step type should they use to branch the execution?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
ConditionStep
The ConditionStep allows comparing values and branching to different steps. If data quality passes, the tuning step runs; otherwise, the pipeline stops or runs an alternative step. Other steps do not provide conditional branching.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
TuningStep
Why it's wrong here
TuningStep launches a hyperparameter tuning job; it is the step being gated, not the branching mechanism. It is tempting because the scenario names hyperparameter tuning as the conditional action, but the question asks which step type performs the branching, which is ConditionStep, not the tuning job itself.
- ✗
TrainingStep
Why it's wrong here
TrainingStep runs a model training job and produces model artefacts; it has no conditional evaluation or branching capability. It is tempting because training is central to the pipeline, but gating a step on a data quality outcome requires ConditionStep, which evaluates the condition and controls whether the tuning step executes.
- ✓
ConditionStep
Why this is correct
ConditionStep evaluates a Boolean condition against a pipeline property, such as the data quality check's output, and branches execution accordingly. It gates the tuning step so it runs only when the check passes, satisfying the conditional-execution requirement without altering the underlying training logic.
- ✗
TransformStep
Why it's wrong here
TransformStep runs a processing or batch transform job on data; it cannot evaluate a condition and branch execution. It is tempting because TransformStep does process data, which sounds adjacent to a data quality check, but branching requires a ConditionStep, which evaluates a condition and gates downstream steps such as the tuning step.
Go deeper
Related to this question
About these practice questions
Courseiva writes every MLA-C01 question from scratch — 665 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This MLA-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the MLA-C01 exam.