About this exam
A Professional-level AWS Certification for DevOps engineers who provision, operate and manage systems on AWS. It covers SDLC automation, configuration management and infrastructure as code, resilient cloud solutions, monitoring and logging, incident and event response, and security and compliance, with an emphasis on designing automation for large environments.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
A team exposes a Lambda function through an alias and deploys it with AWS CodeDeploy. For each release, the team wants to send only 10% of traffic to the new version first and, if there are no problems for 5 minutes, shift all remaining traffic. If the function's error count rises during this time, it must roll back to the previous version without human intervention. Which configuration meets these requirements?
- AUse the CodeDeployDefault.LambdaAllAtOnce deployment configuration and enable automatic rollback in the deployment group
- BUse the CodeDeployDefault.LambdaLinear10PercentEvery1Minute deployment configuration and associate a CloudWatch alarm with the deployment group
- CPublish the new version, then manually repoint the alias to it in the Lambda console
- DUse the CodeDeployDefault.LambdaCanary10Percent5Minutes deployment configuration, associate an error-count CloudWatch alarm with the deployment group, and enable rollback when the alarm fires
Show answer and explanation
Answer:D "10% first, the rest after 5 minutes" is a canary configuration, combined with an alarm and automatic rollback.
Why it is correct
CodeDeployDefault.LambdaCanary10Percent5Minutes sends 10% of the alias traffic to the new version and shifts the remaining 90% all at once after 5 minutes. With an error-count CloudWatch alarm associated with the deployment group and automatic rollback enabled for when the alarm threshold is met, CodeDeploy points the alias back to the previous version if problems occur during the shift. This satisfies both the gradual shift and the hands-off rollback.
The other options
- ✗ A AllAtOnce shifts 100% of traffic to the new version immediately, so it does not send only 10% first. It is suited to environments such as development where gradual validation is unnecessary.
- ✗ B Linear10PercentEvery1Minute adds 10% every minute, which is not the required behavior of holding at 10% for 5 minutes and then shifting the rest at once. Use it when you want to ramp up load gradually.
- ✗ C Repointing the alias manually moves all traffic at once and provides no automatic rollback on errors. It is a small-scale manual release process without CodeDeploy.
Key takeaway
Canary → a slice first, then everything else after a set time. Linear → equal increments at fixed intervals. AllAtOnce → everything immediately. Rolling back automatically on the Lambda error metric requires an associated CloudWatch alarm and rollback-on-alarm settings.
Try 43 questions like this for free
itmoshi is an unofficial study service and is not affiliated with AWS or any exam provider.