‹ All DOP-C02 questions

DOP-C02 Practice Question 32: ECS Deployment Circuit Breaker

AWS Certified DevOps Engineer – Professional (DOP-C02) · Test 4 · question 2 of 10

SDLC Automationmedium

An Amazon ECS service on AWS Fargate uses the rolling update (ECS) deployment controller behind an Application Load Balancer. When a bad task definition is deployed, tasks crash on startup and ECS keeps launching replacements for an hour while the deployment stays IN_PROGRESS, until an on-call engineer notices and redeploys the previous task definition by hand. The team wants ECS itself to declare the deployment failed and put the previous task definition back. They are not willing to change the deployment controller or to provision a second target group.

What should the team do?

Select one answer
Show answer and explanation

Answer:

  • C. Enable the deployment circuit breaker on the service with rollback set to true, and tune the failure threshold to match how many task failures the team will tolerate

The deployment circuit breaker is described as "the rolling update mechanism that determines if the tasks reach a steady state," and it "has an option that will automatically roll back a failed deployment to the deployment that is in the COMPLETED state." When the failure count reaches the threshold, the deployment moves to FAILED, stops launching tasks, and, with rollback enabled, ECS starts a new deployment from the last completed one. It is supported only for services using the rolling update deployment controller, which is what this service already uses, so nothing about the deployment model or the load balancer has to change.

Option A protects capacity but never ends the bad deployment. With no healthy new tasks, ECS simply keeps trying within those percentages for as long as the deployment lasts, which is the behavior being complained about.

Option B makes ECS notice an unhealthy task faster, and therefore churn faster. Health check tuning has no concept of a failed *deployment*, so the deployment still never fails and never rolls back.

Option D would give automatic rollback, but it changes the deployment controller and an ECS blue/green deployment requires two target groups, both explicitly ruled out by the stem.

Reference: How the Amazon ECS deployment circuit breaker detects failures

Practice Test 4 ›

Study guides for DOP-C02

AWS Service Control Policies Explained: SCPs and DenialsAWS service control policies explained: how SCPs cap permissions, why admins still get access denied, inheritance, deny vs allow lists and the exam traps.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
What Is Amazon RDS? Multi-AZ, Read Replicas and BackupsWhat is Amazon RDS? Engines, Multi-AZ, read replicas, backups, RDS Proxy, Aurora and pricing explained, with the traps that AWS exams set around each one.
Best DevOps certification: AWS, Azure, Google or CKAThe best DevOps certification for your stack: AWS DOP-C02, Azure AZ-400, Google Cloud DevOps Engineer and CKA compared on cost, level and prerequisites.
What Is AWS Lambda? Triggers, Concurrency and Cold StartsWhat is AWS Lambda? How functions run, cold starts, triggers vs event source mappings, concurrency, layers, aliases, pricing and the exam traps.
AWS CloudOps Engineer Associate (SOA-C03) exam guideAWS Certified CloudOps Engineer – Associate (SOA-C03) replaced SysOps Administrator. Format, cost, the five domains, what changed and how to prepare.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is Amazon EC2? Instances, AMIs, EBS and Auto ScalingAmazon EC2 explained: instances, AMIs, instance types, security groups, EBS, Auto Scaling groups and pricing options, with the traps AWS exams set.
SQS vs SNS vs EventBridge on AWSWhen to use an SQS queue, an SNS topic or an EventBridge bus, plus fan-out, FIFO ordering, visibility timeouts and dead-letter queues for AWS exams.