Courseiva
Deployment and Orchestration of ML WorkflowshardMultiple ChoiceObjective-mapped

Conditional Execution in SageMaker Pipelines

A team uses SageMaker Pipelines to retrain a model nightly. They want to skip the training step if the new data is unchanged (same checksum as previous run) to save cost and time. Which pipeline configuration achieves this?

Quick Answer

Skipping work conditionally inside a SageMaker Pipeline requires a step that can evaluate a comparison and then branch, and the ConditionStep is the native construct designed for exactly that: it takes a condition, in this case whether the current data's checksum matches the checksum recorded from the previous run, and routes execution down one of two paths depending on the result. Pointing the unchanged branch at a NoOp step is what lets the pipeline formally complete that path without doing any real work, which is how the training step gets skipped entirely rather than run redundantly on data that hasn't actually changed. This is a cleaner fit than trying to handle the check inside the training script itself, since that would still spin up the training job and its underlying compute before deciding not to do anything, defeating the cost and time savings the team is after. The checksum comparison is what makes the condition meaningful here, since without it there would be no reliable signal that the data is actually identical rather than just similarly sized or dated. Whenever a pipeline scenario describes wanting to skip a step based on whether an upstream input has genuinely changed, look for a ConditionStep paired with a comparison and a no-op branch as the mechanism.

⚠ Common exam trap

Candidates often confuse pipeline caching (which caches based on step input parameters) with conditional branching based on external data state, leading them to pick Option A or D, which do not actually evaluate data checksums.

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

Use a ConditionStep that compares the current data checksum to the previous run's checksum, and branch to a NoOp step if unchanged

SageMaker Pipelines' ConditionStep allows you to evaluate a condition—such as comparing the current data checksum to a stored previous checksum—and branch accordingly. If the checksums match, you can route to a NoOp step (which does nothing) instead of executing the training step, thereby skipping the training and saving cost and time. This is the native, recommended pattern for conditional execution in SageMaker Pipelines.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enable pipeline caching on the training step

    Why it's wrong here

    Caching reuses the output if the step configuration (inputs, parameters, code) is identical; it does not detect unchanged data if input paths differ.

  • Use a Lambda step to check data before running the training step

    Why it's wrong here

    A Lambda step can check the data but cannot conditionally skip the next step; ConditionStep is needed for branching.

  • Use a ConditionStep that compares the current data checksum to the previous run's checksum, and branch to a NoOp step if unchanged

    Why this is correct

    This allows skipping the training step dynamically based on data content changes.

  • Set the training step's CacheConfig with a TTL of 24 hours

    Why it's wrong here

    TTL-based caching still runs the step if the TTL expires, even if data hasn't changed.

About these practice questions

Courseiva writes every MLA-C01 question from scratch — 835 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 →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on MLA-C01

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. 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?

hard
  • A.TuningStep
  • B.TrainingStep
  • C.ConditionStep
  • D.TransformStep

Why C: 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.

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.