Question 391:
You`ve created a Cloudformation template as per your team`s request which is required for testing an application. The requirement is that when there is a request for stack deletion, the database should still be preserved for future reference.How can you achieve this using Cloudformation?
Answer options:
A.Ensure that the RDS is created with Read Replica`s so that the Read Replica remains after the stack is torn down. B.In the AWS CloudFormation template, set the DeletionPolicy of theAWS::RDS::DBInstance’s DeletionPolicy property to “Retain.” C.In the AWS CloudFormation template, set the WaitPolicy of the AWS::RDS::DBInstance’s WaitPolicy property to “Retain.” D.In the AWS CloudFormation template, set the AWS::RDS::DBInstance’s DBlnstanceClass property to be read-only.