SOA-C02 Practice Question: CodeDeploy blue/green deployment on ECS for…
This SOA-C02 practice question tests your understanding of codedeploy blue/green deployment on ecs for…. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. A key principle to apply: codeDeploy blue/green. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A containerized API runs on Amazon ECS with an Application Load Balancer. The team wants to deploy new container versions with zero downtime, automatically route traffic to the new version only after health checks pass, and automatically roll back if error rates spike within 10 minutes of the shift. Which deployment strategy and configuration implements all three requirements?
Answer choices
Why each option matters
Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.
Best answer
Use CodeDeploy with the ECS blue/green deployment type, configure a Canary or Linear traffic shifting strategy, and attach a CloudWatch alarm for error rate as a deployment alarm
The ECS blue/green deployment starts the green task set, registers it with a second target group, and uses ALB weighted routing to shift traffic progressively. The deployment alarm monitors a 5xx error rate metric. If the alarm enters ALARM state at any point during traffic shifting or the bake period, CodeDeploy automatically shifts traffic back to the original blue target group. The team defines the 10-minute bake window via the deployment configuration's terminationWaitTimeInMinutes.
Distractor review
Update the ECS service with a rolling update deployment configuration and set the minimum healthy percent to 100
Rolling updates on ECS replace tasks in-place — they do not create a parallel task set and do not support weighted ALB traffic shifting between old and new versions. Rollback requires a new deployment of the previous task definition, not an automatic revert. Rolling updates cannot satisfy the traffic-shift health check gating and automatic rollback requirements.
Distractor review
Create a second ECS service with the new task definition and use Route 53 weighted routing to shift traffic at the DNS level
Route 53 weighted routing shifts traffic at the DNS level with TTL-based propagation delays (minutes). DNS clients cache the old record, making precise traffic percentages approximate. ALB-level traffic shifting in CodeDeploy ECS blue/green is more accurate and immediate. DNS-based shifting also cannot easily achieve automatic rollback based on CloudWatch alarms.
Distractor review
Enable ECS circuit breaker on the service to roll back failed deployments automatically
The ECS circuit breaker rolls back a deployment if the new task set fails to start (tasks keep failing health checks and entering STOPPED state). It does not monitor application-level error rates after traffic is successfully shifted. It cannot implement a post-shift alarm-based rollback during a defined bake period.
Common exam trap
Common exam trap: answer the scenario, not the keyword
Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.
Technical deep dive
How to think about this question
Treat this as a scenario question. Identify the problem, the constraint, and the best action. Then compare each option against those facts.
KKey Concepts to Remember
- CodeDeploy blue/green
- ECS deployment
- traffic shifting
- ALB target groups
- rollback
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
CodeDeploy blue/green
Related practice questions
Related SOA-C02 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
More questions from this exam
Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.
Question 1
A company uses Amazon CloudFront to deliver content to a global audience. The origin is an Application Load Balancer in us-east-1. The SysOps administrator wants to reduce costs by minimizing the number of requests that reach the origin server. Which action should the administrator take?
Question 2
A company runs a batch processing application on Amazon EC2 that runs for 2 hours every night. The workload can tolerate interruptions. Which EC2 purchasing option provides the lowest cost for this use case?
Question 3
A SysOps administrator needs to monitor the CPU utilization of an Amazon RDS DB instance and receive an alarm when CPU utilization exceeds 80% for 5 consecutive minutes. Which AWS service should be used to create this alarm?
Question 4
A company runs a critical web application on Amazon EC2 instances in an Auto Scaling group behind an Application Load Balancer (ALB). The application uses session stickiness (sticky sessions) to maintain user sessions. The SysOps administrator notices that when instances are replaced during a scale-in or failure event, users lose their session data. The administrator needs to preserve session data across instance failures without losing stickiness benefits. What should the administrator do?
Question 5
A company runs a production web application on a single Amazon EC2 instance. The application experiences a predictable and steady workload 24/7. The SysOps administrator wants to minimize compute costs for this instance while ensuring it remains available during the expected workload. Which EC2 purchasing option should the administrator use?
Question 6
A company has a VPC with public and private subnets. The private subnets host application servers that need to make outbound HTTPS connections to the internet. The SysOps administrator must implement a solution that provides outbound internet connectivity while preventing inbound connections from the internet. Additionally, the solution must allow the company to control which domains the application servers can access. Which solution should the administrator implement?
Practice this exam
Start a free SOA-C02 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this SOA-C02 question test?
CodeDeploy blue/green
What is the correct answer to this question?
The correct answer is: Use CodeDeploy with the ECS blue/green deployment type, configure a Canary or Linear traffic shifting strategy, and attach a CloudWatch alarm for error rate as a deployment alarm — CodeDeploy blue/green for ECS creates a new task set (green) alongside the existing one (blue). Traffic is shifted to green using a configurable strategy (AllAtOnce, Linear, Canary). The ALB target group routing switches traffic only after the green task set passes health checks. CodeDeploy alarms monitor CloudWatch metrics (e.g., error rate) and trigger automatic rollback if any alarm fires during the deployment or within the configured bake time. After bake time without alarms, the blue task set is terminated.
What should I do if I get this SOA-C02 question wrong?
Review codeDeploy blue/green, then practise related SOA-C02 questions on the same topic to reinforce the concept.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Discussion
Sign in to join the discussion.
This SOA-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 SOA-C02 exam.