SAP-C02 Continuous Improvement for Existing Solutions Practice Question
A company uses AWS CodePipeline to deploy a web application to Amazon ECS. The deployment often fails because the ECS service's desired count is not met during the update. The company wants to implement a blue/green deployment with automated rollback on failure. What is the MOST effective approach?
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
✓
Use CodePipeline with CodeDeploy to perform a blue/green deployment on ECS and configure automatic rollback.
CodeDeploy with ECS blue/green deployment provides built-in traffic shifting and automated rollback. Option A is wrong because it lacks traffic shifting. Option B is wrong because it does not support blue/green. Option C is wrong because it lacks automated rollback.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use CodePipeline with a Lambda function to swap target groups and monitor health.
Why it's wrong here
This approach may not have automated rollback.
- ✗
Use CodeDeploy with an in-place deployment configuration and a manual approval step.
Why it's wrong here
In-place deployment is not blue/green.
- ✗
Use CodePipeline with ECS rolling update and CloudWatch alarms to trigger rollback.
Why it's wrong here
Rolling update does not support blue/green traffic shifting.
- ✓
Use CodePipeline with CodeDeploy to perform a blue/green deployment on ECS and configure automatic rollback.
Why this is correct
CodeDeploy natively supports blue/green deployments on ECS with traffic shifting and automatic rollback based on CloudWatch alarms.
Go deeper
Related to this question
About these practice questions
One of 1,660 original SAP-C02 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 SAP-C02 practice question is part of Courseiva's free Amazon Web Services 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 SAP-C02 exam.