SAP-C03 practice question: Deployment strategies with rollback (blue/green, canary, rolling)
Operational Excellence and Automation A free question from our original SAP-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.
A car maker's dealer-portal API runs as an AWS Lambda function behind API Gateway. Releases must reach a small share of traffic first, and the release must roll back automatically if the error rate alarm fires during the first minutes after the change.
The team wants a deployment that shifts traffic in steps with no servers to manage, and it wants the previous version kept so it can be restored quickly.
Which deployment configuration meets these requirements?
Choose one answer.
AA. Replace the function's code in place with the new version at once, and roll back by uploading the previous code package if the error rate rises.
BB. Deploy with CodeDeploy using a Lambda canary configuration that shifts a small share of traffic to the new version first, with a CloudWatch alarm that triggers automatic rollback.
CC. Package the new version as a container image, deploy it to an Auto Scaling group of EC2 instances behind an Application Load Balancer, and move the instances over one at a time by hand.
DD. Create a second API in API Gateway with the new version, and ask dealers to switch to its address when they are ready.
Show the answer and explanation
Answer: B
A. Wrong: An all-at-once in-place change sends the new version to every caller immediately, and the rollback is a manual upload. The option misses the staged traffic shift and the automatic rollback.
B. Right: Correct. CodeDeploy shifts a small share of traffic to the new version first, then the rest after the period if the alarm stays quiet. Lambda versions keep the previous version available, and the alarm triggers the rollback with no servers to manage.
C. Wrong: The option moves the function onto servers the team must manage, and the instance-by-instance move is manual. It does not use the Lambda versions the team wants.
D. Wrong: Asking dealers to switch addresses leaves no staged traffic shift and no automatic rollback. The option moves the burden of the release onto the customers.
Explanation
A CodeDeploy canary on the Lambda version shifts a small share of traffic first and rolls back automatically on a CloudWatch alarm, with the previous version kept and no servers to run. In-place or manual changes, EC2 moves and customer-side switches each miss the staged or automatic element.
Only a small share of dealers reach the new version at first, and the alarm rolls back before everyone is affected.
Want more on Deployment strategies with rollback (blue/green, canary, rolling)? The 5 full-length practice sets have 7 more Deployment strategies with rollback (blue/green, canary, rolling) questions, 375 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →