A new gaming application is being deployed on the Amazon EC2 instance.
Amazon EC2 instances are created using AMI from the marketplace.
The application fetches data from multiple general purpose EBS volumes attached to this instance.
The application deployment Team is looking for backup of all data in these EBS volumes as a disaster recovery measure.
As a Sysops administrator, you plan to use Amazon Data Lifecycle Manager to create snapshots of all the EBS volumes attached to the Amazon EC2 instance with a single Amazon Data Lifecycle Manager lifecycle policy. Which of the following settings should be selected while configuring the lifecycle policy to meet this requirement?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer: A.
Amazon Data Lifecycle Manager can be used to automate the creation, deletion and retention of EBS Snapshots and EBS-Backed AMIs.
While creating a snapshot for multiple EBS volumes connected to a single Amazon EC2 instance, the following settings need to be added in a Life cycle policy.
Policy type - Snapshot lifecycle policy.
Resource type- INSTANCE.
Other parameters in a Life Cycle Policy-Target Tags, Schedules & Retention can be set as per customer requirements.
Option B is incorrect as the EBS-backed AMI lifecycle policy is used to create a lifecycle policy for EBS backed AMI.
This will create a snapshot of all the EBS instances attached to the EC2 instance.
But since, in this case, EC2 instances are using AMI from the marketplace, these settings won't work.
Option C is incorrect as with Resource type as VOLUME, snapshot for only a single EBS volume will be created, not for all the volumes attached to the EC2 instance.
Option D is incorrect as Resource type as VOLUME is an invalid option for policy type as EBS-backed AMI lifecycle policy.
This policy type only supports resource type as INSTANCE.For more information on creating lifecycle policies using Amazon Data Lifecycle Manager, refer to the following URL,
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.htmlThe correct answer for this scenario is option C: In Lifecycle policy settings, select Policy type as Snapshot lifecycle policy & Resource type as VOLUM.
Explanation:
Amazon Data Lifecycle Manager is a service provided by AWS that allows you to create, automate, and manage the lifecycle of Amazon EBS snapshots. It enables you to create snapshots of EBS volumes on a regular basis, retain them for a specified period, and then delete them after that period.
In this scenario, the application fetches data from multiple general purpose EBS volumes attached to an EC2 instance. Therefore, to create backups of all data in these EBS volumes, we need to create snapshots of these volumes. We can use Amazon Data Lifecycle Manager to create snapshots of all the EBS volumes attached to the Amazon EC2 instance with a single lifecycle policy.
Now, let's understand each of the given options and why option C is the correct one.
Option A: In Lifecycle policy settings, select Policy type as Snapshot lifecycle policy & Resource type as INSTANC. This option is not correct because the resource type selected here is INSTANC, which means that the lifecycle policy will be applied to the EC2 instance, not the EBS volumes. Therefore, it won't create snapshots of the EBS volumes, which is our requirement.
Option B: In Lifecycle policy settings, select Policy type as EBS-backed AMI lifecycle policy & Resource type as INSTANC. This option is also not correct because the policy type selected here is EBS-backed AMI lifecycle policy, which means that it will create an Amazon Machine Image (AMI) of the EC2 instance, not the snapshots of the EBS volumes. Therefore, it won't create backups of the data in the EBS volumes, which is our requirement.
Option C: In Lifecycle policy settings, select Policy type as Snapshot lifecycle policy & Resource type as VOLUM. This option is correct because the resource type selected here is VOLUM, which means that the lifecycle policy will be applied to the EBS volumes attached to the EC2 instance. Also, the policy type selected is Snapshot lifecycle policy, which means that it will create snapshots of the EBS volumes on a regular basis, retain them for a specified period, and then delete them after that period. Therefore, it will create backups of all data in these EBS volumes, which is our requirement.
Option D: In Lifecycle policy settings, select Policy type as EBS-backed AMI lifecycle policy & Resource type as VOLUM. This option is not correct because the policy type selected here is EBS-backed AMI lifecycle policy, which means that it will create an Amazon Machine Image (AMI) of the EBS volumes, not the snapshots of the EBS volumes. Therefore, it won't create backups of the data in the EBS volumes, which is our requirement.