
Answer-first summary for fast verification
Answer: Set the DeletionPolicy attribute to Retain for the EC2 instance resource in the CloudFormation template.
Setting the `DeletionPolicy` attribute to `Retain` allows a resource to be kept without being deleted when its CloudFormation stack is deleted. This keeps the EC2 instances and all their associated data intact.
Author: Ritesh Yadav
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.
No comments yet.