An organization uses an AWS CloudFormation stack to deploy an Application Load Balancer, an Auto Scaling group, and associated security groups. A stack update fails due to a configuration error in the Auto Scaling group launch template. During the subsequent automatic rollback, a security group that was manually modified outside of CloudFormation prevents the rollback from completing, leaving the stack in the UPDATE_ROLLBACK_FAILED state. Which actions must a SysOps Administrator perform to successfully recover the stack to a stable state and ensure the template and physical resources are aligned? (Select TWO.)
- Perform a Continue Update Rollback operation, specifying the blocked security group as a resource to skip during the rollback.Cevap
- After the rollback completes, manually update the skipped security group to match its expected configuration in the CloudFormation template.Cevap
- CUse the drift detection feature to identify the differences in the security group, then use the drift remediation tool to automatically synchronize the manual modifications back into the stack template.
- DDelete the stack while enabling the Retain Resources option for the entire stack, then import the existing resources into a new stack template.
- ECreate a new IAM service role with iam:PassRole permissions, associate it with the stack, and immediately run the Update Stack command to overwrite the failed rollback status.
Cevap
To recover the stack and align it with the template, perform a Continue Update Rollback operation while skipping the blocked security group. Once the rollback completes, manually update the skipped security group to match its expected configuration in the template.
Continuing the update rollback and specifying the blocked security group to be skipped allows the stack to successfully roll back and reach the stable UPDATE_ROLLBACK_COMPLETE state. After the rollback completes, the skipped resource must be manually updated to match its expected template definition because skipping it leaves it in an inconsistent state relative to the template.
Adım Adım Çözüm
Anahtar Kavram
Recovering from CloudFormation UPDATE_ROLLBACK_FAILED state by skipping blocked resources and manually reconciling drift.
Tahmini Süre:3m 0s