Instiq
Chapter 3 · Deployment and Orchestration of ML Workflows·v2.1.0·Updated 6/14/2026·~9 min

What's changed: In-scope coverage: deployment/runtime/IaC services

3.2MLOps and SageMaker Pipelines

Key points

Understand MLOps: automating the ML lifecycle with SageMaker Pipelines, versioning/approval with the Model Registry, and CI/CD integration.

To continuously rebuild and deploy models, automate the ML lifecycle (MLOps). On AWS, SageMaker Pipelines is central.

3.2.1Pipelines and the Model Registry

Diagram of a SageMaker Pipelines MLOps flow: Process (data prep) → Train → Evaluate (gate on metric) → Register & deploy (Model Registry), automating the ML lifecycle as a repeatable pipeline and versioning models in the registry.
SageMaker Pipelines MLOps flow
  • SageMaker Pipelines: automate prep→train→evaluate→register/deploy as a repeatable pipeline.
  • Model Registry: version models and gate production deployment via approval status.
  • Evaluation step: proceed to register/deploy only if metrics pass a threshold (a quality gate).
  • Integrate with CI/CD (e.g., CodePipeline) to automate retraining/deploy from a commit.
Exam point

Common on MLA: automate the ML lifecycle = SageMaker Pipelines, version/approve models = Model Registry, gate before prod on metrics = evaluation step.

MLOps runs "the ML lifecycle reproducibly, automatically, and under governance." SageMaker Pipelines defines process→train→evaluate→register/deploy as a DAG, tracking each step’s inputs/outputs (data, model, metrics) via lineage. An evaluation step + ConditionStep creates a quality gate that "proceeds to registration only if metrics pass a threshold." Trained models are versioned into the Model Registry as a model package group, with approval status (Approved/Rejected) governing production deployment—approval triggers automated deploy via CI/CD like CodePipeline. Use SageMaker Experiments for experiment tracking, ML Lineage Tracking for metadata, and Projects for templated setups. Automate retraining triggered by EventBridge (schedule) or Model Monitor drift detection (data/model quality, feature attribution, bias drift) to keep models fresh. The axes: "lifecycle automation = Pipelines," "version/approval = Model Registry," "pre-prod gate = evaluation step."

GoalUse
Automate the lifecycleSageMaker Pipelines
Version/approve modelsModel Registry
Pre-prod quality gateEvaluation step + condition
Retrain on driftModel Monitor + EventBridge
Example

Scenario: never ship sub-threshold models, and auto-deploy after approval. Build train → evaluation step + condition (e.g., F1 ≥ 0.85) in SageMaker Pipelines, registering to the Model Registry only when it passes. When an owner marks it Approved, CodePipeline auto-deploys. In production, Model Monitor watches drift and EventBridge triggers retraining on detection.

Note

Q. Automate lifecycle? SageMaker Pipelines. Q. Version/approve? Model Registry. Q. Pre-prod gate? Evaluation step + condition. Q. Detect drift? Model Monitor. Q. Trigger retraining? EventBridge (schedule/event).

Warning

Watch the mix-ups: (1) Pipelines = automation / Model Registry = version-approval—don’t swap. (2) Without a quality gate, bad models reach prod—always add an evaluation step + condition. (3) Model Monitor detects but doesn’t auto-fix—design retraining/rollback separately. (4) Skipping the approval flow loses governance.

Tip

Automate retraining triggered by schedules (EventBridge) or data/model drift detection to keep models fresh.

3.2.2Section summary

  • SageMaker Pipelines (automation) + Model Registry (version/approval)
  • Quality gate via evaluation step; integrate with CI/CD

Sign in to track progress — Log in.

Quick check

(just a quick review)

Q1. You want to automate the prep→train→evaluate→deploy ML lifecycle reproducibly. Which fits best?

Q2. You want to version models and deploy only approved ones to production. What do you use?

Q3. What lets a pipeline "proceed to registration only if the evaluation metric passes a threshold"?

Check your understandingPractice questions for Chapter 3: Deployment and Orchestration of ML Workflows

Keep track of your progress

The full study guide is free to read. Sign up free to practice with the question bank, track what you have read, review your mistakes, and highlight passages.