SOA-C03 · Question #115
A company uses AWS CloudFormation to manage a stack of Amazon EC2 instances on AWS. A CloudOps engineer needs to keep the instances and all of the instances' data, even if someone deletes the stack…
The correct answer is D. Set the DeletionPolicy attribute to Retain for the EC2 instance resource in the CloudFormation. In AWS CloudFormation, setting the DeletionPolicy attribute to Retain ensures that the resource (in this case, the EC2 instance and its associated data) is not deleted when the stack is deleted. This preserves the instance and its data outside of the stack lifecycle, meeting…
Question
A company uses AWS CloudFormation to manage a stack of Amazon EC2 instances on AWS. A CloudOps engineer needs to keep the instances and all of the instances’ data, even if someone deletes the stack. Which solution will meet these requirements?
Options
- ASet the DeletionPolicy attribute to Snapshot for the EC2 instance resource in the CloudFormation
- BAutomate backups by using Amazon Data Lifecycle Manager (Amazon DLM).
- CCreate a backup plan in AWS Backup.
- DSet the DeletionPolicy attribute to Retain for the EC2 instance resource in the CloudFormation
How the community answered
(17 responses)- B6% (1)
- C12% (2)
- D82% (14)
Explanation
In AWS CloudFormation, setting the DeletionPolicy attribute to Retain ensures that the resource (in this case, the EC2 instance and its associated data) is not deleted when the stack is deleted. This preserves the instance and its data outside of the stack lifecycle, meeting the requirement to keep everything even if the stack is removed.
Topics
Community Discussion
No community discussion yet for this question.