A development team maintains a web application by using a single AWS RDS, template.
The template defines web servers and an Amazon RDS database. The team uses the
CloudFormation template to deploy the CloudFormation 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.)
- Add a CloudFormation DeletionPolicy attribute with the Retain value to the database resource.
- Update the CloudFormation stack policy to prevent updates to the database.
- Modify the database to use a Multi-AZ deployment.
- Create a CloudFormation stack set for the web application and database deployments.
- Add a CloudFormation DeletionPolicy attribute with the Retain value to the stack.
Reveal Solution Next Question