Skip to lesson

AWSAWS Certified Generative AI Developer - Professional2026-101.2 Select and configure FMs

Promote releases with a tested return path

Completed by the knowledge check

Learning objective

Promote and roll back model deployments safely across environments. Preserve a known release identity, expose changes gradually, and match the return path to the resource that actually changed.

Core idea

Promotion moves an approved release into another operating environment. Rollback restores a previously acceptable serving configuration. Both require more than a model name: the release includes artifacts, runtime, prompts, adapters, routing, and validation dependencies that determine the observable behavior.

Choose the mechanism from the change. A SageMaker AI endpoint update changes hosted serving capacity and model configuration. An AppConfig deployment changes application routing or settings. Returning one resource to its previous version does not automatically return the other resources with it.

How it works

Promote the reviewed subject

Build and evaluate a candidate, register the release evidence, and approve the exact version as described in 1.2.7. Promote that reviewed subject rather than rebuilding a loosely equivalent artifact in each environment. If packaging must differ, record and validate the difference explicitly.

Keep environment bindings separate from the release’s behavioral identity. Production can use different resource names and capacity, but its model, adapter compatibility, prompt contract, and validation expectations must still match the approved candidate. A staging success under different response limits does not establish production behavior.

Use Model Registry’s staging construct as the promotion record. A model package’s ModelLifeCycle holds Stage and StageStatus, identifying transitions such as Development to Production and the decision at each stage. Administrators restrict permitted transitions with IAM condition keys such as sagemaker:ModelLifeCycle:stage and sagemaker:ModelLifeCycle:stageStatus. Stage changes produce events that EventBridge rules can consume to trigger your promotion workflow. Updating this record does not itself deploy an endpoint; the workflow must bind the package to the environment’s serving resources.

Record the previous acceptable release before changing anything. Retain its artifacts and dependencies, verify that its model remains available, and identify the operation that restores it. A rollback entry pointing at an expired model or deleted artifact is documentation without a working recovery mechanism.

Shift hosted endpoint traffic safely

SageMaker AI deployment guardrails supports blue/green and rolling endpoint updates for supported real-time and asynchronous inference endpoints. Review the documented exclusions for the endpoint’s features before selecting a guardrail strategy; do not assume every hosting topology accepts every strategy.

For a supported blue/green canary update, UpdateEndpoint selects the new EndpointConfigName. Its DeploymentConfig.BlueGreenUpdatePolicy.TrafficRoutingConfiguration can use Type: CANARY, with CanarySize and WaitIntervalInSeconds defining the initial exposure and observation interval. These are endpoint deployment controls, not a permanent experiment assignment scheme.

A bake period gives the new serving path time to produce evidence before full acceptance. Choose its duration from the frequency and detectability of the failures you care about. A brief interval with only ordinary short prompts can miss a rare long-context regression even if infrastructure metrics stay healthy.

Auto-rollback requires CloudWatch alarms. Configure AutoRollbackConfiguration.Alarms with the alarms the deployment should monitor, and grant the execution role cloudwatch:DescribeAlarms as documented. Without configured alarms, the bake period does not provide functioning automatic rollback.

Observe infrastructure and task outcomes

SageMaker’s documented alarm examples use Invocation4XXErrors, Invocation5XXErrors, and ModelLatency. They also show how the EndpointConfigName dimension can isolate the new fleet. Use a new-fleet alarm when existing old-fleet failures should not determine the candidate’s verdict.

Infrastructure health does not measure semantic correctness. Add a measured task-quality signal, such as failed schema validation or reviewed unsupported-answer rate, to the release decision. SageMaker’s rollback documentation permits custom metrics where applicable, but your application must produce the signal. A deployment control does not invent a factual-quality metric.

Inspect the metric population and delay. A high-volume healthy path can dilute a low-volume failing task slice. A delayed human review might arrive after the automatic monitoring window has ended. Retain an explicit post-deployment decision and manual recovery path for failures the bake interval cannot detect.

Roll back the right resource

For an endpoint update under deployment guardrails, a configured alarm can initiate rollback to the old fleet during the monitored period. After the release is complete, retain the old endpoint configuration and artifacts so a deliberate endpoint update can restore the known version if required. Recheck its capacity and availability instead of assuming historical success is sufficient. During the bake period, alarms on the new fleet and a task-quality signal decide between rollback to the old fleet and full acceptance.

During the bake period, alarms on the new fleet and a task-quality signal decide between rollback to the old fleet and full acceptanceA blue/green canary update starts with an initial exposure, then a bake period. New-fleet alarms and a task-quality signal feed one decision. An alarm during the monitored period rolls traffic back to the old fleet; otherwise the release reaches full acceptance. Failures the bake interval cannot detect still need the manual recovery path.yesnofailures the bake interval cannotdetectBlue/green canaryupdateInitial exposureBake periodNew-fleet alarmsTask-quality signalAlarm in themonitored period?Rollback to the oldfleetFull acceptanceManual recoverypath

For an application that changes a Bedrock target through AWS AppConfig, restore the prior routing configuration through its deployment and rollback mechanisms; see 1.2.3. This restores target selection, not SageMaker weights.

Coordinate related changes through a release record. If a prompt, model, and output validator change together, define which compatible tuple you restore. Independently reverting the model while leaving a replacement-specific parser can reproduce the failure in another form.

Rollback affects subsequent processing; it does not undo a message already sent or a tool action already completed. For consequential workflows, preserve action state and route unresolved work to a controlled recovery process. Do not use redeployment as evidence that downstream business effects were reversed.

Key distinctions and trade-offs

Model approval versus production promotion: Approval makes a candidate eligible. Promotion binds it to the production serving and routing resources.

Canary deployment versus A/B test: A canary limits rollout exposure while checking release health. An A/B experiment compares outcomes under an explicit assignment design.

Operational rollback versus business compensation: Restoring serving code changes future behavior. Previously completed external effects require their own recovery policy.

Within a blue/green deployment, all-at-once traffic shifting exposes the new fleet to all traffic immediately, while canary or linear shifting introduces exposure in stages. Rolling deployment is the other deployment type: it replaces portions of the fleet incrementally. Select the type and traffic-shifting mode from the acceptable exposure, capacity, and recovery envelope rather than minimizing deployment time alone.

Architecture / decision scenario

A hosted summarizer promotes an approved custom model after staging tests. The team uses a supported SageMaker AI blue/green canary update and alarms scoped to the new endpoint configuration. The prior package and endpoint configuration remain retained.

The new fleet passes availability checks but emits malformed structured summaries. The application publishes its validation-failure signal, and the configured release gate halts promotion and returns traffic to the old fleet. The team investigates the model-and-validator tuple before another attempt.

A separate Bedrock model route uses AppConfig rollout and rollback instead. Both workflows share approval evidence, but each returns the resource it changed through its own mechanism. The incident record distinguishes repaired serving from any downstream work still needing review.

Common exam traps

  • Rebuilding an unverified artifact during production promotion.
  • Assuming deployment guardrails applies to every endpoint feature.
  • Expecting auto-rollback without CloudWatch alarms or monitoring permissions.
  • Treating low model latency as proof of answer quality.
  • Reverting routing while leaving an incompatible response parser.
  • Assuming rollback reverses completed business actions.

What to remember

  • Promote an exact reviewed release and keep environment bindings explicit.
  • Retain a usable predecessor before exposing the candidate.
  • Use SageMaker guardrails for eligible hosted endpoint changes.
  • Use AppConfig rollback for routing and configuration changes.
  • Monitor both serving health and the task’s acceptance contract.

Knowledge check

References