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 36 discussion

A development team maintains a web application by using a single AWS CloudFormation template. The template defines web servers and an Amazon RDS database. The team uses the Cloud Formation template to deploy the Cloud Formation stack to different environments.
During a recent application deployment, a developer caused the primary development database to be dropped and recreated. The result of this incident was a loss of data. The team needs to avoid accidental database deletion in the future.
Which solutions will meet these requirements? (Choose two.)

  • A. Add a CloudFormation Deletion Policy attribute with the Retain value to the database resource.
  • B. Update the CloudFormation stack policy to prevent updates to the database.
  • C. Modify the database to use a Multi-AZ deployment.
  • D. Create a CloudFormation stack set for the web application and database deployments.
  • E. Add a Cloud Formation DeletionPolicy attribute with the Retain value to the stack.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
Mtho96
Highly Voted 1 year, 3 months ago
A. Add a CloudFormation Deletion Policy attribute with the Retain value to the database resource: By adding a DeletionPolicy attribute with the Retain value to the database resource in the CloudFormation template, the database will not be deleted even if the CloudFormation stack is deleted. This helps prevent accidental database loss during stack deletion. B. Update the CloudFormation stack policy to prevent updates to the database: By updating the CloudFormation stack policy, the development team can restrict updates to the database resource. This prevents accidental modifications or recreations of the database during stack updates. The stack policy can define specific actions that are allowed or denied, providing an additional layer of protection against unintentional database changes.
upvoted 16 times
...
svrnvtr
Highly Voted 1 year, 7 months ago
Selected Answer: AB
AB https://aws.amazon.com/ru/premiumsupport/knowledge-center/cloudformation-accidental-updates/
upvoted 7 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: AB
A) Correct - When a DeletionPolicy: Retain is applied to a resource, CloudFormation retains (does not delete) the resource even if the stack is deleted or updated. B) Correct - Preventing updates ensures that no actions (such as deletion or replacement) can accidentally impact the database. This is an effective safeguard to avoid both deletion and unintended modifications. C) Eliminated - Multi-AZ deployment is for ensuring database availability and durability, not to prevent accidental deletion. Even with Multi-AZ, the database can still be deleted. D) Eliminated - Stack sets are for multi-account/multi-region deployments and do not inherently prevent resource deletion. E) Eliminated - The DeletionPolicy attribute applies only to individual resources, not the entire stack.
upvoted 4 times
...
65703c1
5 months, 1 week ago
Selected Answer: AB
AB is the correct answer.
upvoted 1 times
...
Vaibs099
6 months ago
A and B, A is straightforward. For B, within stack policy you can deny update to logical resource for RDS DB. This will prevent any updates to stack resource which could also erase and create new RDS instance.
upvoted 1 times
...
Jonalb
1 year ago
Selected Answer: AB
https://aws.amazon.com/ru/premiumsupport/knowledge-center/cloudformation-accidental-updates/
upvoted 1 times
...
magicjims
1 year, 1 month ago
Selected Answer: AB
This came up in the exam today, I chose A&B
upvoted 3 times
...
panoptica
1 year, 1 month ago
D & A for me
upvoted 2 times
...
nguyenta
1 year, 3 months ago
Selected Answer: AB
A and B
upvoted 2 times
...
marvel21
1 year, 4 months ago
A & B Correct Answer
upvoted 2 times
...
s50600822
1 year, 4 months ago
D because grandma said?
upvoted 2 times
...
Japanjot
1 year, 5 months ago
A B CORRECT
upvoted 1 times
...
ihebchorfi
1 year, 6 months ago
Selected Answer: AB
D is wrong, because while it still doesn't protect from the accidental deletion of the DB.
upvoted 1 times
ihebchorfi
1 year, 6 months ago
After more thinking, combining A & D is the correct answer, so i would go with AD
upvoted 2 times
...
...
Untamables
1 year, 7 months ago
Selected Answer: AB
A and B https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/protect-stack-resources.html
upvoted 5 times
...
March2023
1 year, 7 months ago
Selected Answer: AB
I agree it is AB
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago