SOA-C03 practice question: Deployment strategies and third-party tools (2 of 2)
Deployment, Provisioning, and Automation A free question from our original SOA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.
A pet insurer releases new versions of its premium-calculation AWS Lambda function with AWS CodeDeploy.
Last week, a faulty version reached all users at once and returned errors for 20 minutes before anyone noticed.
The team wants each new version to receive a small share of traffic first, and the deployment to roll back automatically if errors rise, without human action.
Which TWO changes should a CloudOps engineer make? (Choose two.)
Choose two answers.
AA. Point a Route 53 weighted record at the old and new function versions, and adjust the weights by hand during each release.
BB. Publish each new version and have clients call the version number directly, so that the team can change it back if errors appear.
CC. Use the CodeDeployDefault.LambdaCanary10Percent5Minutes deployment configuration for the function's deployment group.
DD. Use the CodeDeployDefault.LambdaAllAtOnce deployment configuration and lower the function's reserved concurrency during deployments.
EE. Add a CloudWatch alarm on the function's error metric to the deployment group and turn on rollback when an alarm threshold is met.
Show the answer and explanation
Answers: C, E
A. Wrong: Lambda versions are not DNS endpoints, and manual weight changes need human action. Traffic shifting between Lambda versions is done with alias routing, which CodeDeploy manages. Learn more: Weighted routing (opens in a new tab)
CodeDeploy shifts traffic between Lambda versions through an alias. A canary configuration sends a small share of traffic to the new version first, and CloudWatch alarms attached to the deployment group trigger automatic rollback when errors rise. Together they limit the impact of a bad release without anyone watching.
CodeDeploy shifts 10 percent of traffic for 5 minutes, and the error alarm rolls the alias back automatically.
Want more on Deployment strategies and third-party tools? The 5 full-length practice sets have 10 more Deployment strategies and third-party tools questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →