Training has steps for data preparation, training, evaluation and registration. You want them to run in order, reuse unchanged step outputs, and be triggered from CI. What do you build?
- Exam domain
- Implement machine learning model lifecycle and operations25–30% of the exam
- Difficulty
- Medium
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Implement machine learning model lifecycle and operations: Orchestrate model training.
Objective in the exam guide: Implement training pipelines.
Production training is a sequence of steps, not one script. The exam checks you know how to orchestrate them.
Why B is the answer
A pipeline job made of components
A pipeline job connects components into steps with inputs and outputs, runs them in order, and can reuse outputs of unchanged steps.
Remember: Multi-step training workflow: pipeline job of components.
How it works
A machine learning pipeline is a workflow of steps, each running a component.
Outputs of one step feed inputs of the next, which defines the order.
Steps whose code and inputs have not changed can reuse earlier outputs, saving time and compute.
Clues in the question
The words that point to the answer, and what each one tells you.
- Run in order
- A pipeline with dependencies.
- Reuse unchanged step outputs
- Pipeline step reuse.
In detail
- Each step can use different compute, such as CPU for data preparation and GPU for training.
- The pipeline can be submitted from GitHub Actions.
Side by side with look-alikes
| Option | Ordered steps? | Reuses outputs? |
|---|---|---|
| A pipeline job made of components | Yes | Yes |
| Notebooks by hand | Manual | No |
| One script | Yes | No |
| Batch endpoints | No | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A batch endpoint for each stepWrong
Batch endpoints score data; they do not orchestrate training.
B. A pipeline job made of componentsRight
Multi-step training workflow: pipeline job of components.
C. Four separate notebooks run by handWrong
Manual notebooks are not repeatable or schedulable.
D. One script with all steps in a loopWrongMost tempting
One script cannot reuse outputs or run steps on different compute.
Why it tempts: One script is simple and keeps things together. But it reruns everything every time and cannot use different compute per step.
In practice
- End the pipeline with a registration step that registers the model only if evaluation passes.
Use case
An illustrative scenario, not a real incident.
A CI workflow submits the training pipeline on merge; when only the training code changed, the data preparation step is reused.
See how it works
flowchart LR
P["Prepare data"] --> T["Train"]
T --> E["Evaluate"]
E --> C{"Better than production?"}
C -->|Yes| R["Register model"]
C -->|No| S["Stop"]How to read this chart
- "Prepare data" leads to "Train".
- "Train" leads to "Evaluate".
- "Evaluate" leads to "Better than production?".
- At "Better than production?": if "Yes", go to "Register model"; if "No", go to "Stop".