Skip to the page
Tecyfy

Azure interview question · hard

Pipelines in AML. Are they only for training models, or can they orchestrate other tasks like data preprocessing and deployment?

The full answer

No. Azure Machine Learning pipelines orchestrate any sequence of steps in a machine learning workflow: data preparation, validation, training, evaluation, registering a model, batch scoring, and steps that start a deployment. Training is just one kind of step.

How a pipeline is built

  • A pipeline is made of components: reusable, versioned steps with defined inputs, outputs, code and environment. Teams can own different components (a data engineer the preparation step, a data scientist the training step) and share them.
  • Each step can run on different compute, such as a CPU cluster for preparation and a GPU cluster for training.
  • Steps whose inputs haven't changed can reuse earlier results, which saves time and cost.

What a pipeline can orchestrate

  • Data preparation: read from data stores, clean, join and engineer features, write versioned data assets.
  • Data validation: check schema, ranges and drift, and stop the run if the data is bad.
  • Training and tuning: train one or several models, including hyperparameter sweeps.
  • Evaluation and registration: compare metrics with the current production model and register the new one only if it is better.
  • Batch inference: score large datasets. A pipeline can even be deployed as a pipeline component deployment on a batch endpoint, so the whole multi-step scoring process runs on demand.
  • Deployment: a final step can call the SDK or CLI to update a managed online endpoint, though many teams leave deployment to a CI/CD system (Azure DevOps or GitHub Actions) with an approval in between.

How pipelines run

  • On demand from the CLI, SDK or studio.
  • On a schedule (cron or recurrence), for regular retraining or scoring.
  • From outside systems: Azure Data Factory, Fabric pipelines, Azure DevOps or GitHub Actions.

Example: a monthly retraining pipeline

  1. Prepare last month's data and validate it.
  2. Train a candidate model.
  3. Evaluate it against the production model on the same test set.
  4. If better, register it and trigger the release process that deploys it to the online endpoint with a small share of traffic first.

Why it matters Pipelines make the whole workflow repeatable, versioned and automated, which is the core of MLOps: the same steps run the same way every time, and each run records its inputs, code and outputs.

Last updated 16 October 2026