Automate orchestration and delivery for ML and AI workloads
Unlock the complete study guide.
Bundled into the existing AWS Certified Machine Learning Engineer - Associate premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- The ML release path: two pipelines and a registry
- The release pipeline: stages and actions
- Connecting source repositories to the pipeline
- SageMaker Pipelines: the model-building pipeline
- Starting retraining: events and schedules
- Batch transform jobs: how input is distributed
- Model versions for repeatability and audit
- Versioning prompts, flows and agents
- Promoting a fine-tuned model on Provisioned Throughput
- Automated tests and evaluations as release gates
- Live validation: shadow tests and production variants
- Deployment guardrails for SageMaker AI endpoints
- CodeDeploy: deploying the application around the model
- Knowledge base refresh cycles
Validating and rolling out a SageMaker AI endpoint change
| Criterion | Shadow test | Production variants | Blue/green: all at once | Blue/green: canary | Blue/green: linear | Rolling deployment |
|---|---|---|---|---|---|---|
| Who receives candidate responses | No caller; only production responses are returned | Callers routed to the candidate by its weight | All callers, after one shift | A small canary slice first, then all callers | A growing share in equal steps | A growing share, batch by batch |
| How traffic moves | A copy of each request goes to the shadow variant | You set variant weights; TargetVariant overrides them per request | All traffic in one step, then a baking period | Two shifts, each followed by a baking period | Several equally spaced steps, each baked | Batches of 5 to 50 percent of fleet capacity |
| Extra capacity during the change | The shadow variant's instances | Each variant's own instances | A full new fleet while baking | A full new fleet for the whole update | A full new fleet for the whole update | About one batch |
| Automatic rollback | Not applicable: callers never receive shadow responses | Manual: change the weights with UpdateEndpointWeightsAndCapacities | Yes, when a CloudWatch alarm trips | Yes, when a CloudWatch alarm trips | Yes, when a CloudWatch alarm trips | Yes, in batches or all traffic at once |
| Fits when | A model, container or instance change must be tested with no user impact | Candidates must be compared side by side on live traffic | A simple cutover with a safety window is enough | The blast radius must stay within a small slice | Risk must be spread across many equal steps | The model or fleet is large, or accelerated instances are scarce |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
Also tested in
References
- https://docs.aws.amazon.com/aws-certification/latest/machine-learning-engineer-associate-02/machine-learning-engineer-associate-02-domain3.html
- https://docs.aws.amazon.com/codepipeline/latest/userguide/concepts.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/build-and-manage-steps.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-approve.html
- https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-train-storage.html
- https://docs.aws.amazon.com/codebuild/latest/userguide/concepts.html
- https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html
- https://docs.aws.amazon.com/dtconsole/latest/userguide/welcome-connections.html
- https://docs.aws.amazon.com/codepipeline/latest/userguide/action-reference-CodestarConnectionSource.html
- https://docs.aws.amazon.com/dtconsole/latest/userguide/connections-update.html
- https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/processing-job.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/build-and-manage-steps-types.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/pipelines-caching.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/pipeline-eventbridge.html
- https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-projects-templates-sm.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/automating-sagemaker-with-eventbridge.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-registry-deploy.html
- https://docs.aws.amazon.com/aws-certification/latest/machine-learning-engineer-associate-02/machine-learning-engineer-associate-02-domain4.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html
- https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-test.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/flows-deploy.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/agents-classic-maintenance-mode.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/deploy-agent.html
- https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/agent-runtime-versioning.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/deploy-custom-model-on-demand.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-edit.html
- https://docs.aws.amazon.com/aws-certification/latest/machine-learning-engineer-associate-02/machine-learning-engineer-associate-02-domain2.html
- https://docs.aws.amazon.com/prescriptive-guidance/latest/gen-ai-lifecycle-operational-excellence/preprod-hardening.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation.html
- https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/evaluations.html
- https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/how-it-works-evaluations.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/shadow-tests.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-guardrails-blue-green.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-guardrails.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-guardrails-configuration.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-guardrails-blue-green-canary.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-guardrails-rolling.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/deployment-guardrails-exclusions.html
- https://docs.aws.amazon.com/codedeploy/latest/userguide/welcome.html
- https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-steps-ecs.html
- https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/kb-data-source-sync-ingest.html