A SysOps Administrator is managing an infrastructure stack deployed via AWS CloudFormation. During a stack update, a resource modification fails, prompting CloudFormation to roll back the stack. However, the rollback fails, and the stack enters the UPDATE_ROLLBACK_FAILED state because a DynamoDB table created by the stack was manually deleted outside of CloudFormation during the update process. Which of the following actions should the SysOps Administrator take to successfully resolve the update rollback failure and return the stack to a stable state? (Select TWO.)
- Continue the update rollback and specify the DynamoDB table as a resource to skip.Answer
- Manually recreate the DynamoDB table with the exact same name, and then continue the update rollback.Answer
- CCreate a CloudFormation change set that removes the DynamoDB table from the template, and execute the change set.
- DUpdate the CloudFormation stack template to remove the DynamoDB table resource, and perform a stack update.
- EModify the CloudFormation stack's service role to grant the iam:PassRole permission for DynamoDB, and restart the rollback.
Answer
To resolve the rollback failure, the administrator can either continue the update rollback and select the DynamoDB table to be skipped, or manually recreate the DynamoDB table with the exact same name and then continue the update rollback.
To resolve a stack that has failed to roll back and is in the UPDATE_ROLLBACK_FAILED state, you must either fix the underlying issue that caused the failure or skip the failed resources during the rollback. Recreating a manually deleted resource (like a DynamoDB table) with the same name allows CloudFormation to find the resource and complete the rollback process. Alternatively, choosing to skip the resource allows the rollback to finish, although the resource must then be manually reconciled to match the template.
Step-by-Step Solution
Key Concept
Remediating CloudFormation rollback failures caused by missing resources
Estimated Time:2m 0s