DBS-C01 · Question #232
DBS-C01 Question #232: Real Exam Question with Answer & Explanation
The correct answer is A: Set the DeletionProtection property to True.. To prevent accidental data loss from an Amazon RDS DB instance when its AWS CloudFormation stack is deleted, configure the CloudFormation template to set DeletionProtection to True for the RDS resource, set DeleteAutomatedBackups to False, and apply the DeletionPolicy: Retain att
Question
A company has an AWS CloudFormation stack that defines an Amazon RDS DB instance. The company accidentally deletes the stack and loses recent data from the DB instance. A database specialist must change the CloudFormation template for the RDS resource to reduce the chance of accidental data loss from the DB instance in the future. Which combination of actions should the database specialist take to meet this requirement? (Choose three.)
Options
- ASet the DeletionProtection property to True.
- BSet the MultiAZ property to True.
- CSet the TerminationProtection property to True.
- DSet the DeleteAutomatedBackups property to False.
- ESet the DeletionPolicy attribute to No.
- FSet the DeletionPolicy attribute to Retain.
Explanation
To prevent accidental data loss from an Amazon RDS DB instance when its AWS CloudFormation stack is deleted, configure the CloudFormation template to set DeletionProtection to True for the RDS resource, set DeleteAutomatedBackups to False, and apply the DeletionPolicy: Retain attribute to the resource.
Common mistakes.
- B. Setting the
MultiAZproperty toTrueprovides high availability within a region but does not prevent the entire DB instance from being deleted if the CloudFormation stack is removed. - C. The
TerminationProtectionproperty is used for Amazon EC2 instances, not for Amazon RDS DB instances. - E. The value
Nois not a validDeletionPolicyattribute for AWS CloudFormation resources; valid options areDelete,Retain, orSnapshot.
Concept tested. CloudFormation RDS deletion protection and backup retention
Reference. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html
Topics
Community Discussion
No community discussion yet for this question.