概念 · SAA-C03 の発展
Deployment strategies and rollback
Blue/green with canary or linear shifting, rolling updates and shadow tests, with automatic rollback.
このレッスンはまだ翻訳されていないため、英語で表示しています。
Solutions Architect Associateで学んだこと
- Replace servers with new, tested ones instead of patching them, so every instance is identical.
- Blue/green keeps two environments, switches traffic and can roll back at once.
- 1SageMaker AI starts the green fleet and shifts traffic: all at once, canary or linear.
- 2Alarms watch the green fleet during the baking period.
- 3No alarm: the blue fleet is removed.
- 4An alarm trips: traffic returns to blue.
流れ
- 1SageMaker AI starts the green fleet and shifts traffic: all at once, canary or linear.
- 2Alarms watch the green fleet during the baking period.
- 3No alarm: the blue fleet is removed.
- 4An alarm trips: traffic returns to blue.
All at once
- How traffic moves
- Everything moves, then a baking period
- Where
- SageMaker AI blue/green
Canary
- How traffic moves
- A small slice first, then the rest
- Where
- SageMaker AI, CodeDeploy
Linear
- How traffic moves
- Equal steps until all has moved
- Where
- SageMaker AI, CodeDeploy
Rolling
- How traffic moves
- New capacity in batches
- Where
- SageMaker AI
Shadow
- How traffic moves
- Copy of requests, answers dropped
- Where
- SageMaker AI shadow test
| Strategy | How traffic moves | Where |
|---|---|---|
| All at once | Everything moves, then a baking period | SageMaker AI blue/green |
| Canary | A small slice first, then the rest | SageMaker AI, CodeDeploy |
| Linear | Equal steps until all has moved | SageMaker AI, CodeDeploy |
| Rolling | New capacity in batches | SageMaker AI |
| Shadow | Copy of requests, answers dropped | SageMaker AI shadow test |
1 / 2
All at once
- How traffic moves
- Everything moves, then a baking period
- Where
- SageMaker AI blue/green
Canary
- How traffic moves
- A small slice first, then the rest
- Where
- SageMaker AI, CodeDeploy
Linear
- How traffic moves
- Equal steps until all has moved
- Where
- SageMaker AI, CodeDeploy
| Strategy | How traffic moves | Where |
|---|---|---|
| All at once | Everything moves, then a baking period | SageMaker AI blue/green |
| Canary | A small slice first, then the rest | SageMaker AI, CodeDeploy |
| Linear | Equal steps until all has moved | SageMaker AI, CodeDeploy |
2 / 2
Rolling
- How traffic moves
- New capacity in batches
- Where
- SageMaker AI
Shadow
- How traffic moves
- Copy of requests, answers dropped
- Where
- SageMaker AI shadow test
| Strategy | How traffic moves | Where |
|---|---|---|
| Rolling | New capacity in batches | SageMaker AI |
| Shadow | Copy of requests, answers dropped | SageMaker AI shadow test |
概要
SageMaker AI deployment guardrails update a real-time or asynchronous endpoint in a controlled way. Blue/green starts a new fleet (green) beside the old one (blue) and shifts traffic. All at once moves everything, then watches. Canary moves a small slice first, waits, then moves the rest. Linear moves traffic in equal steps. After each shift, CloudWatch alarms you name watch the green fleet during a baking period. If an alarm trips, SageMaker AI returns traffic to blue by itself. If not, it ends the blue fleet. You start one by passing a deployment configuration to UpdateEndpoint.
概要
A rolling deployment replaces capacity in batches of a size you set, so it needs less spare capacity than blue/green, which briefly runs two fleets. It also rolls back on alarms. Serverless endpoints cannot use deployment guardrails.
A shadow test sends a copy of live requests to the new model and drops its answers, so you compare behaviour with no user risk. A/B testing is different, because real users get the new answers. For Lambda functions and Amazon ECS services in front of a model, AWS CodeDeploy gives canary, linear and all-at-once traffic shifting with alarm-based rollback.
覚えること
- Blue/green on SageMaker AI: all at once, canary or linear traffic shifting.
- CloudWatch alarms watch during the baking period. A trip rolls back automatically.
- Rolling: batches, less spare capacity. Shadow: copies traffic, users never see the answers.
- Guardrails work for real-time and asynchronous endpoints, not serverless.
覚えること
- CodeDeploy does canary, linear and all-at-once for Lambda and ECS.
試験では
- “Send 10 percent of traffic to the new model and roll back if errors rise” points to canary blue/green with CloudWatch alarms.
- “Compare a new model on real traffic with no user impact” points to a shadow test.
- “Update with the least spare capacity” points to a rolling deployment.
- “Shift a Lambda alias gradually” points to CodeDeploy with a canary or linear configuration.
このタスクの内容 · 3.3
- Deployment strategies and rollback
CodePipeline
CodeBuild
CodeDeploy
SageMaker Pipelines
- Automated testing in ML pipelines
- Triggering retraining
Model Registry
Prompt Management
- Agent deployment pipelines and versions
- AI model and prompt testing
- Automating FM deployment and fine-tuned model versions
- RAG update and knowledge base refresh pipelines
Step Functions