A developer attempts to deploy a new infrastructure stack using an AWS CloudFormation template. The initial stack creation fails during the creation of an Amazon DynamoDB table, and the stack status changes to ROLLBACK_COMPLETE. The developer corrects the table configuration in the template and wants to deploy the corrected template.
Which of the following actions can the developer take to deploy the updated template successfully? (Select TWO.)
- Delete the current stack, and then create a new stack using the corrected template.Cevap
- Deploy the corrected template as a new stack under a different stack name.Cevap
- CRun the update-stack CLI command on the existing stack, pointing to the corrected template.
- DExecute the continue-update-rollback CLI command on the current stack to resume the deployment with the corrected template.
- EPerform drift detection on the current stack to automatically resolve the failed DynamoDB table state, then apply the updated template.
Cevap
Deleting the failed stack and creating a new one, or deploying the template as a new stack with a different name.
To resolve a failed initial stack creation that has rolled back to the ROLLBACK_COMPLETE state, the developer must either delete the failed stack and create a new one using the corrected template, or deploy the template as a new stack with a different name. This is because a stack in the ROLLBACK_COMPLETE state from a failed initial creation cannot be updated directly.
Adım Adım Çözüm
Anahtar Kavram
Troubleshooting CloudFormation ROLLBACK_COMPLETE state on initial stack creation
Tahmini Süre:1m 0s