AWS SAP-C02 · Question 73 · Domain 3.1: Operational Excellence
A development team is using AWS CloudFormation to manage their infrastructure. They frequently update a stack that contains an Amazon RDS database. Recently, a junior developer accidentally modified the database identifier in the CloudFormation template, which caused CloudFormation to replace (delete and recreate) the database, resulting in data loss. How can the Architect prevent this from happening again?
A development team is using AWS CloudFormation to manage their infrastructure. They frequently update a stack that contains an Amazon RDS database. Recently, a junior developer accidentally modified the database identifier in the CloudFormation template, which caused CloudFormation to replace (delete and recreate) the database, resulting in data loss. How can the Architect prevent this from happening again?
Answer options:
Add a DeletionPolicy attribute with the value 'Retain' to the RDS database resource in the CloudFormation template.
Enable Termination Protection on the CloudFormation stack.
Use an AWS IAM policy to deny the 'rds:DeleteDBInstance' action for the CloudFormation execution role.
Configure AWS Backup to take hourly snapshots of the RDS database.
How to approach this question
Full Answer
Common mistakes
Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 5
75 questions · hints · full answers · grading
Expert