Topic 1 Question 164
A SysOps administrator created an AWS CloudFormation template that provisions Amazon EC2 instances, an Elastic Load Balancer (ELB), and an Amazon RDS DB instance. During stack creation, the creation of the EC2 instances and the creation of the ELB are successful. However, the creation of the DB instance fails.
What is the default behavior of CloudFormation in this scenario?
CloudFormation will roll back the stack and delete the stack.
CloudFormation will roll back the stack but will not delete the stack.
CloudFormation will prompt the user to roll back the stack or continue.
CloudFormation will successfully complete the stack but will report a failed status for the DB instance.
ユーザの投票
コメント(15)
- 正解だと思う選択肢: B
Ans is B. It will delete all the resources in the stack but stack deletion will be manual.
👍 5traja2022/11/27 - 正解だと思う選択肢: B
B. CloudFormation will roll back the stack but will not delete the stack.
In AWS CloudFormation, if the creation of a resource within a stack fails, CloudFormation will roll back the entire stack to its previous state. This means that any resources that were created successfully will be deleted, and the stack will be returned to the state it was in before the stack creation began. However, CloudFormation does not delete the stack itself in this scenario. Instead, the stack remains in a failed state, and the administrator can choose to roll back the stack or continue with the stack creation.
👍 3MrMLB2022/12/20 - 正解だと思う選択肢: A
I think A The rollback-stack operation will delete a stack if it doesn't contain a last known stable state. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-failure-options.html
👍 3SomboonCH2023/03/02
シャッフルモード