Lesson 2 of 5 MLOps Orchestration and Model Versioning

Choosing ML Orchestrators: Step Functions, MWAA and EventBridge

This lesson explains when Step Functions, Amazon MWAA and EventBridge fit as deployment orchestrators alongside SageMaker Pipelines, as the exam guide asks.

Learning outcomes

After completing this lesson, you will be able to:

  • Orchestrate serverless workflows with Step Functions.
  • Run Airflow DAGs with SageMaker operators on Amazon MWAA.
  • Connect orchestrators with EventBridge events.
  • Combine orchestrators in one system.

AWS Step Functions

Step Functions orchestrates serverless workflows across more than 200 AWS services with built-in retries, error handling, parallel and map states and wait-for-callback for human approvals. Optimized integrations start SageMaker AI training, processing, transform and endpoint jobs and wait for completion (.sync), and call Bedrock models, Glue jobs and Lambda functions. It suits ML workflows that span many services, such as a pipeline that ingests data with Glue, trains on SageMaker AI, calls Bedrock and updates DynamoDB.

Amazon MWAA

Amazon Managed Workflows for Apache Airflow (MWAA) runs Apache Airflow without servers to manage. Pipelines are written as directed acyclic graphs (DAGs) in Python, using operators for SageMaker AI, AWS Glue, Amazon EMR, Amazon Athena and many systems outside AWS.

MWAA suits organisations that already use Airflow and want to keep their existing DAGs, pipelines with complex scheduling and dependencies across data and machine learning tasks, and orchestration of tools outside AWS. For pipelines made only of SageMaker AI steps, SageMaker Pipelines is usually simpler.

Amazon EventBridge

EventBridge is the event bus that connects these orchestrators. SageMaker AI emits events for training job, pipeline execution, endpoint and model package state changes; rules match them and start targets such as a pipeline, a state machine or a CodePipeline release. EventBridge Scheduler runs pipelines on cron or rate schedules. The following table summarises the choice.

OrchestratorBest for
SageMaker PipelinesModel building with ML-specific steps, caching, lineage and registry
AWS Step FunctionsServerless workflows across many AWS services, approvals, error handling
Amazon MWAAExisting Airflow DAGs, complex cross-system scheduling
Amazon EventBridgeEvent-driven triggers between services and schedules
Kubernetes on EKSTeams standardised on Kubernetes-native ML tooling

How the orchestrators work together

The orchestrators are not mutually exclusive, and many production systems combine them, each doing the part it is best at. SageMaker Pipelines usually owns model building, because its steps understand training jobs, evaluation reports, model registration and lineage, and step caching avoids repeating unchanged work. Step Functions usually owns workflows that cross many services or involve people, such as a document process that calls Textract and Bedrock, waits for an approval callback and writes results to DynamoDB, because its states, retries and execution history make every step explicit and auditable.

EventBridge connects the pieces through events rather than direct calls. A new object in S3, a completed pipeline execution or an approved model package version emits an event, and rules route it to the next workflow. This keeps each workflow independent: the model-building pipeline does not need to know which deployment process follows, and a new consumer can be added by creating a rule. EventBridge Scheduler covers time-based triggers in the same way.

MWAA fits when an organisation's data platform already runs on Airflow. Rather than rewriting hundreds of DAGs, the team adds SageMaker operators so that training and batch scoring run as tasks with dependencies on upstream data jobs. The cost of this choice is operating Airflow environments and writing DAG code, which a team without existing Airflow investment usually avoids by choosing the serverless options.

The following diagram shows the orchestrators connected through events.

The orchestrators working together. An Airflow task on MWAA starts a SageMaker pipeline, which builds and registers a model; approving the version emits an event; and an EventBridge rule starts a Step Functions deployment workflow. Each workflow stays independent, and new consumers are added with new rules.
The chain is one example of the combinations described.
Sort into groups

Which orchestrator?

Exam skills 3.3.5 · 3.1.2

Choose the orchestration service for each need.

Log in to try this activity Interactive activities are free with an account.
Worked example

Choosing an orchestrator

Three teams describe their needs.

Team needChoice
Data team runs 300 Airflow DAGs and wants ML training tasks in themAmazon MWAA with SageMaker operators
Document workflow: Textract, Bedrock summarisation, human approval, then DynamoDB updateStep Functions
Model team needs process, train, evaluate, register with lineageSageMaker Pipelines

All three can start each other: an Airflow task can start a SageMaker pipeline, and an EventBridge rule on model approval can start a Step Functions deployment workflow. The choice follows the team's existing tools and the nature of the steps.

Check yourself

Which orchestrator suits a team with existing Airflow DAGs?

Show answer

Amazon MWAA.

Exam Tips

Remember for the exam

  • Workflows across many AWS services with retries and approvals: Step Functions.
  • Existing Airflow DAGs: Amazon MWAA.
  • ML-specific build, evaluate and register with lineage: SageMaker Pipelines.
  • React to model approval or job state changes: EventBridge rules.
  • Scheduled pipeline runs: EventBridge Scheduler.