
AWS Certified DevOps Engineer - Professional
Get started today
Ultimate access to all questions.
A company utilizes AWS CloudFormation to manage its application deployment, which involves AWS Auto Scaling groups, Amazon EC2 instances, Application Load Balancers (ALBs), and other related resources. The company strictly enforces that any changes to the application resources must be made through CloudFormation stack updates. During a recent update attempt using the AWS CLI, the stack update failed with an error indicating that both the deployment and the CloudFormation stack rollback were unsuccessful, specifically mentioning that the AutoScalingGroup resource failed to update. Consequently, the stack is now in an UPDATE_ROLLBACK_FAILED state. What corrective action should be taken to resolve this stack update failure?
A company utilizes AWS CloudFormation to manage its application deployment, which involves AWS Auto Scaling groups, Amazon EC2 instances, Application Load Balancers (ALBs), and other related resources. The company strictly enforces that any changes to the application resources must be made through CloudFormation stack updates. During a recent update attempt using the AWS CLI, the stack update failed with an error indicating that both the deployment and the CloudFormation stack rollback were unsuccessful, specifically mentioning that the AutoScalingGroup resource failed to update. Consequently, the stack is now in an UPDATE_ROLLBACK_FAILED state. What corrective action should be taken to resolve this stack update failure?
Explanation:
The correct answer is B. When a CloudFormation stack is stuck in an UPDATE_ROLLBACK_FAILED state, you typically need to provide the necessary permissions for the stack update process to continue. Updating the IAM role to include the required permissions and then running the aws cloudformation continue-update-rollback AWS CLI command is the appropriate course of action. This solution directly addresses the state of the stack and ensures that the rollback process can be completed, resolving the failure.