Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon SOA-C03 Exam - Topic 1 Question 18 Discussion

A CloudOps engineer is troubleshooting an AWS CloudFormation stack creation that failed. Before the CloudOps engineer can identify the problem, the stack and its resources are deleted. For future deployments, the CloudOps engineer must preserve any resources that CloudFormation successfully created.What should the CloudOps engineer do to meet this requirement?
B) Set the value of the OnFailure parameter to DO_NOTHING during stack creation.
A) Set the value of the DisableRollback parameter to False during stack creation.
C) Specify a rollback configuration that has a rollback trigger of DO_NOTHING during stack creation.
D) Set the value of the OnFailure parameter to ROLLBACK during stack creation.

Amazon SOA-C03 Exam - Topic 1 Question 18 Discussion

Actual exam question for Amazon's SOA-C03 exam
Question #: 18
Topic #: 1
[All SOA-C03 Questions]

A CloudOps engineer is troubleshooting an AWS CloudFormation stack creation that failed. Before the CloudOps engineer can identify the problem, the stack and its resources are deleted. For future deployments, the CloudOps engineer must preserve any resources that CloudFormation successfully created.

What should the CloudOps engineer do to meet this requirement?

Show Suggested Answer Hide Answer
Suggested Answer: B

By default, when AWS CloudFormation encounters a failure during stack creation, it automatically rolls back and deletes any resources that were successfully created. This behavior makes troubleshooting difficult because the failed and partially created resources are no longer available for inspection.

CloudFormation provides the OnFailure parameter to control this behavior. Setting the parameter to DO_NOTHING instructs CloudFormation to stop stack creation when a failure occurs and retain all successfully created resources. This allows the CloudOps engineer to inspect the environment, review logs, and identify the root cause without redeploying resources.

The DisableRollback parameter controls rollback behavior but does not provide the same explicit behavior control during failure scenarios. Rollback triggers are used for monitoring-based rollback, not for preserving resources on failure. Setting OnFailure to ROLLBACK explicitly enforces deletion, which is the opposite of the requirement.

Therefore, setting the OnFailure parameter to DO_NOTHING is the correct solution.


Contribute your Thoughts:

0/2000 characters
Merissa
3 days ago
Isn't it risky to keep resources if the stack fails?
upvoted 0 times
...
Hannah
8 days ago
Definitely need to set OnFailure to DO_NOTHING!
upvoted 0 times
...
Nobuko
13 days ago
Wait, I thought rollback was automatic?
upvoted 0 times
...
Colton
19 days ago
I disagree, C seems more effective for preserving resources.
upvoted 0 times
...
Caren
24 days ago
Option B is the way to go!
upvoted 0 times
...
Roslyn
29 days ago
I remember reading that setting OnFailure to ROLLBACK would delete everything, so that can't be the answer. It must be something else!
upvoted 0 times
...
Nicolette
1 month ago
I practiced a similar question, and I think specifying a rollback configuration could be key. But I'm not confident about the exact syntax.
upvoted 0 times
...
Florinda
1 month ago
I'm not entirely sure, but I feel like the DisableRollback parameter being set to False might not help us preserve resources.
upvoted 0 times
...
Anabel
1 month ago
I think I remember that the OnFailure parameter can control what happens when a stack creation fails. Maybe DO_NOTHING is the right choice to keep resources?
upvoted 0 times
...

Save Cancel