‹ All DOP-C02 questions

DOP-C02 Practice Question 18: CloudFormation Update Rollback Failed

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

Incident and Event Responsehard

A CloudFormation stack that holds a production Amazon RDS database and its supporting resources fails an update, and the stack then shows UPDATE_ROLLBACK_FAILED. The stack events show that the rollback could not restore an AWS::EC2::SecurityGroup resource, because an engineer deleted that security group by hand during the incident. The team must return the stack to a state in which it can be updated again, without deleting the stack.

What should the team do?

Select one answer
Show answer and explanation

Answer:

  • A. Run continue-update-rollback with the security group's logical ID in --resources-to-skip, then bring the template and the actual resources back in line before the next stack update

UPDATE_ROLLBACK_FAILED means CloudFormation could not undo every change it made during the update. The CloudFormation docs use this very case as their example: a resource the rollback expected was deleted outside CloudFormation. A stack in this state "can't be updated, but it can be rolled back to a working state (UPDATE_ROLLBACK_COMPLETE)". Continue update rollback retries the rollback, and when the cause cannot be fixed, its advanced option ResourcesToSkip lists the logical IDs of resources that failed *during the rollback*. CloudFormation marks them UPDATE_COMPLETE and finishes rolling back everything else. The docs warn that skipped resources will then be inconsistent with the template, and that you must reconcile them before the next update, or later updates may fail and the stack may become unrecoverable. That is why the answer includes the reconciliation step.

Option B looks like it fixes the cause but does not. CloudFormation tracks the security group by its *physical* ID (sg-...), and a new group with the same name and rules gets a different ID. The rollback still tries to reach the original ID and fails again.

Option C is not allowed. A stack in UPDATE_ROLLBACK_FAILED cannot accept a stack update. It must first be rolled back to UPDATE_ROLLBACK_COMPLETE.

Option D confuses two operations. cancel-update-stack cancels an update that is *in progress*, which starts a rollback. It does not apply to a rollback that has already failed, and it never leaves a stack in UPDATE_COMPLETE with partial changes in place.

Reference: Continue rolling back an update

Practice Test 2 ›

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.