AWS Certified Database – Specialty — Question 235
A company provisioned a three-tier application by using AWS CloudFormation and an Amazon RDS DB instance. During a test, a database administrator accidentally deleted the CloudFormation stack. The results were a deletion of all the resources, including the DB instance, and a loss of critical data. The company wants to prevent accidental deletion of a DB instance from happening in the future.
Which solutions will meet this requirement? (Choose two.)
Answer options
- A. Set the deletion policy of the stack to Retain.
- B. Set the deletion policy of the RDS resource to Retain.
- C. Set the deletion policy of the stack to Snapshot.
- D. Enable termination protection for the RDS resource.
- E. Enable termination protection for the stack.
Correct answer: B, E
Explanation
Setting the deletion policy of the RDS resource to Retain (Option B) ensures that the database instance will not be deleted when the stack is deleted. Additionally, enabling termination protection for the stack (Option E) prevents accidental deletion of the entire stack, which includes the RDS instance. The other options do not provide the same level of protection for the database instance.