Three teams each write their own data cleaning step for pipelines. You want one tested, versioned step that every pipeline reuses. What do you create?
- Exam domain
- Design and implement an MLOps infrastructure15–20% of the exam
- Difficulty
- Easy
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Objective in the exam guide: Create and manage components.
Copy-pasted pipeline code drifts. The exam checks you know the reusable building block.
Why D is the answer
A component
A component is a self-contained, versioned piece of code with defined inputs and outputs, built to be reused as a step in pipelines.
How it works
A component is a self-contained piece of code that does one step in a machine learning pipeline, such as data preparation or training.
It has an interface: named inputs, outputs and parameters, plus the environment and command to run.
Components are versioned, so pipelines can pin a version or move to a new one deliberately.
Clues in the question
The words that point to the answer, and what each one tells you.
- One tested, versioned step
- A component.
- Every pipeline reuses
- Defined inputs and outputs.
In detail
- A component is defined in YAML with its code, environment, command, inputs and outputs.
- Registered components can be shared through a registry.
Side by side with look-alikes
| Option | Reusable step? | Versioned? |
|---|---|---|
| A component | Yes | Yes |
| Shared notebook | No | No |
| Compute instance per team | No | No |
| Workspace tag | No | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A compute instance per teamWrong
Compute runs code; it does not package a reusable step.
B. A shared notebookWrongMost tempting
A notebook has no defined interface and is not a pipeline step.
Why it tempts: Sharing a notebook does spread the code, so it seems to solve the duplication. But it has no versioned interface and cannot be used as a pipeline step.
C. A workspace tagWrong
A tag is metadata only.
D. A componentRight
A component is a self-contained, versioned piece of code with defined inputs and outputs, built to be reused as a step in pipelines.
In practice
- Keep each component in its own folder with component.yml and its source code, and register it from CI.