
Answer-first summary for fast verification
Answer: Apply a Deletion Policy attribute with the Retain value to the database resource in the CloudFormation template., Implement a CloudFormation stack policy to restrict updates to the database resource.
Option A is correct because applying a Deletion Policy attribute with the Retain value to the database resource in the CloudFormation template ensures that the database will not be deleted even if the CloudFormation stack is deleted. This helps prevent accidental data loss. Option B is correct because implementing a CloudFormation stack policy to restrict updates to the database resource prevents accidental modifications or recreations of the database during stack updates, adding another layer of protection against unintentional database deletion.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a development team prevent accidental deletion of an Amazon RDS database when using a single AWS CloudFormation template for web application deployment across different environments?
A
Apply a Deletion Policy attribute with the Retain value to the database resource in the CloudFormation template.
B
Implement a CloudFormation stack policy to restrict updates to the database resource.
C
Enable Multi-AZ deployment for the database.
D
Utilize a CloudFormation stack set for managing web application and database deployments.
E
Assign a DeletionPolicy attribute with the Retain value to the entire CloudFormation stack.
No comments yet.