exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 206 discussion

A developer is setting up infrastructure by using AWS CloudFormation. If an error occurs when the resources described in the Cloud Formation template are provisioned, successfully provisioned resources must be preserved. The developer must provision and update the CloudFormation stack by using the AWS CLI.

Which solution will meet these requirements?

  • A. Add an --enable-termination-protection command line option to the create-stack command and the update-stack command.
  • B. Add a --disable-rollback command line option to the create-stack command and the update-stack command.
  • C. Add a --parameters ParameterKey=PreserveResources,ParameterValue=True command line option to the create-stack command and the update-stack command.
  • D. Add a --tags Key=PreserveResources,Value=True command line option to the create-stack command and the update-stack command.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Digo30sp
Highly Voted 1 year, 8 months ago
Selected Answer: B
The correct answer is (B). The --disable-rollback command-line option will prevent CloudFormation from rolling back the stack to the previous state if an error occurs. This will ensure that successfully provisioned resources are preserved.
upvoted 7 times
...
albert_kuo
Most Recent 8 months, 3 weeks ago
Selected Answer: B
aws cloudformation create-stack \ --stack-name my-app-stack \ --template-body file://my-template.yaml \ --parameters ParameterKey=InstanceType,ParameterValue=t2.micro \ --disable-rollback aws cloudformation update-stack \ --stack-name my-app-stack \ --template-body file://my-template-updated.yaml \ --parameters ParameterKey=InstanceType,ParameterValue=t2.medium \ --disable-rollback
upvoted 1 times
...
65703c1
1 year ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
KarBiswa
1 year, 3 months ago
Selected Answer: B
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-failure-options.html
upvoted 1 times
...
joshnort
1 year, 4 months ago
Selected Answer: B
It should look like this: aws cloudformation create-stack --stack-name myteststack --template-body file://DOC-EXAMPLE-BUCKET.json --disable-rollback https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-failure-options.html#stack-failure-options-cli
upvoted 3 times
...
kaes
1 year, 6 months ago
Selected Answer: B
"Specify the disable-rollback option or on-failure DO_NOTHING enumeration during a create-stack operation" https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stack-failure-options.html
upvoted 3 times
...
dilleman
1 year, 8 months ago
Selected Answer: B
B is correct
upvoted 3 times
...
kashtelyan
1 year, 8 months ago
Selected Answer: B
https://www.cloudhesive.com/blog-posts/cloudformation-disable-rollback/
upvoted 4 times
...
fordiscussionstwo
1 year, 8 months ago
BBBBBBBBBBBBBBBBB
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...