CV0-004 Deployment Practice Question
A DevOps team is implementing a canary deployment for a microservice running on Amazon ECS. They want to gradually shift 10% of traffic to the new version and automatically roll back if error rates exceed 1% in 5 minutes. Which combination of services should they use?
⚠ Common exam trap
A common mistake is assuming that any orchestration service (like Step Functions) is equivalent to a native deployment service, but the key is that CodeDeploy provides built-in traffic shifting and alarm-based rollback without custom code, which is exactly the requirement in the question.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
AWS CodeDeploy with CloudWatch alarms
AWS CodeDeploy natively supports canary deployments for Amazon ECS, allowing you to specify a traffic shift percentage (e.g., 10%) and integrate with CloudWatch alarms to automatically trigger a rollback when error rates exceed a defined threshold (e.g., 1% over 5 minutes). This combination directly fulfills the gradual traffic shifting and automated rollback requirements without custom scripting.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
AWS CloudFormation and SSM
Why it's wrong here
CloudFormation is for infrastructure, not for canary traffic shifting with automated rollback.
- ✗
AWS Lambda and Step Functions
Why it's wrong here
These are for serverless orchestration, not for ECS canary deployments.
- ✓
AWS CodeDeploy with CloudWatch alarms
Why this is correct
CodeDeploy supports canary deployments and integrates with CloudWatch alarms for automatic rollback.
- ✗
AWS Elastic Beanstalk and Route 53
Why it's wrong here
Elastic Beanstalk supports rolling updates but not canary with automatic rollback based on error rates.
Go deeper
Related to this question
About these practice questions
One of 977 original CV0-004 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CV0-004 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CV0-004 exam.