
Explanation:
In AWS CloudFormation, the DeletionPolicy attribute allows you to preserve or (in some cases) backup a resource when its stack is deleted. By setting DeletionPolicy to Retain, AWS CloudFormation keeps the resource without deleting it when the stack is deleted. While Snapshot is an option for certain resources (like EBS volumes or RDS instances), Retain is the correct policy to keep the EC2 instance itself and its associated data intact and active.
Ultimate access to all questions.
Question #39 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?
A
Set the DeletionPolicy attribute to Snapshot for the EC2 instance resource in the CloudFormation template.
B
Automate backups by using Amazon Data Lifecycle Manager (Amazon DLM).
C
Create a backup plan in AWS Backup.
D
Set the DeletionPolicy attribute to Retain for the EC2 instance resource in the CloudFormation template.
E
null
F
null
No comments yet.