ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 354 - SOA-C02 discussion

Report
Export

A company uses AWS CloudFormation to manage a stack of Amazon EC2 instances on AWS. A SysOps administrator 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.
Answers
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).
Answers
B.
Automate backups by using Amazon Data Lifecycle Manager (Amazon DLM).
C.
Create a backup plan in AWS Backup.
Answers
C.
Create a backup plan in AWS Backup.
D.
Set the DeletionPolicy attribute to Retain for the EC2 instance resource in the CloudFormation template.
Answers
D.
Set the DeletionPolicy attribute to Retain for the EC2 instance resource in the CloudFormation template.
Suggested answer: D

Explanation:

To prevent the EC2 instances and their data from being deleted when a CloudFormation stack is deleted:

DeletionPolicy Attribute: In the CloudFormation template that defines the EC2 instances, set the DeletionPolicy attribute to Retain for each EC2 instance resource. This setting ensures that when the CloudFormation stack is deleted, the EC2 instances are not terminated.

Impact of the Retain Policy: With this policy, all data on the instance, such as data on its attached EBS volumes, remains intact even after the stack deletion. The resources will remain in your AWS account and will need to be managed or deleted manually thereafter.

This approach is directly supported by AWS CloudFormation and provides a simple and effective way to protect EC2 instances and their data during stack deletions.

asked 16/09/2024
A R
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first