A company's data retention policy dictates that backups be stored for exactly two years. After that time, the data must be deleted. How can Amazon EBS snapshots be managed to conform to this data retention policy?
A.
Use an Amazon S3 lifecycle policy to delete snapshots older than two years.
B.
Configure Amazon Inspector to find and delete old EBS snapshots.
C.
Schedule an AWS Lambda function using Amazon CloudWatch Events to periodically run a script to delete old snapshots.
D.
Configure an Amazon CloudWatch alarm to trigger the launch of an AWS CloudFormation template that will clean the older snapshots.
I would go with C too. S3 lifecycle can't be implemented on EBS volumes. EBS volumes has its own lifecycle manager and it is accessed through EC2 console, not S3.
Ans C says to delete old snapshots and does not mention the retention period as per the requirement.Also EBS maintains the snapshot in S3, Lifecycle policy is applicable as per the nature of s3 for that snapshot maintained in s3. Snapshot is not an EBS Volume exactly.
https://blog.skeddly.com/2017/03/ebs-snapshots-explained.html
EBS snapshots are stored in Amazon S3. However, you are not going to find your snapshots in any of your S3 buckets.
AWS uses the S3 infrastructure to store your EBS snapshots, but you cannot access them while they reside in S3.
So A is wrong. Because you cannot see this bucket.
Answer is C.
By scheduling an AWS Lambda function using Amazon CloudWatch Events, you can define a recurring schedule to trigger the Lambda function at specific intervals. Within the Lambda function, you can write a script to identify and delete EBS snapshots that are older than two years.
The script can use the AWS SDK or command-line tools to interact with the Amazon EBS service and identify snapshots based on their creation date or any other relevant criteria. Once identified, the script can issue the necessary API calls to delete the snapshots.
Answerer is C
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshot-lifecycle.html
You can use Amazon Data Lifecycle Manager to automate the creation, retention, and deletion of EBS snapshots and EBS-backed AMIs.
Answer is "A".
EBS snapshots are stored in S#. So, we can setup S3 lifecycle policies for the objects stored in S3.
Data Lifecycle Manager (dlm) is a best choice as well but we don't have it in the options.
C is the correct answer
S3 lifecycle policies cannot work on EBS snapshots; even if they are stored on S3, this part of S3 is not reachable from our account
The answer is not A. It's C.
"First, we use Amazon CloudWatch Events to invoke an AWS Lambda function periodically. This Lambda function parses AWS CloudTrail for EBS events and creates operational work items (OpsItems) for EBS volumes that are in the available state and have not been attached to an EC2 instance for a user-definable time period."
https://aws.amazon.com/blogs/mt/controlling-your-aws-costs-by-deleting-unused-amazon-ebs-volumes/
EBS snapshot are stored in S3 however those S3 bucket belong to AWS and you cannot define S3 policy on bucket which you dont own. Hence C is the correct answer where it gives you visibility to schedule.
I choose C for the correct answer. Follow this one: https://blog.skeddly.com/2017/03/ebs-snapshots-explained.html at key point "When you delete an old EBS snapshot, behind the scenes, AWS will consolidate the snapshot data. It will move valid data forward to the next EBS snapshot and it will discard invalid data".
"EBS snapshots are stored in Amazon S3. However, you are not going to find your snapshots in any of your S3 buckets. AWS uses the S3 infrastructure to store your EBS snapshots, but you cannot access them while they reside in S3."
Based on this, Answer A can't be implemented. The correct alternative would be Answer C.
yes as it is stated there snapshots are safe in S3 when comming from EBS but is not like you have a bucket named EBS_snapshots so you apply a S3 lfecycle policy, so Answer is C
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
white_shadow
Highly Voted 2 years, 6 months agokarmaah
2 years, 6 months agonicat
2 years, 6 months agonicat
2 years, 6 months agochris82
Highly Voted 2 years, 7 months agoalbert_kuo
Most Recent 9 months, 4 weeks agoRicardoD
2 years, 5 months agoChirantan
2 years, 5 months agoHVarada
2 years, 5 months agoabhishek_m_86
2 years, 5 months agoRadhaghosh
2 years, 5 months agotahaRyski
2 years, 5 months agodozymars
2 years, 5 months agoRadhaghosh
2 years, 5 months agoRadhaghosh
2 years, 5 months agojackdryan
2 years, 5 months agoSONLE
2 years, 6 months agoAWS1212
2 years, 6 months agofirstabed
2 years, 6 months agoasim1982
2 years, 6 months agoteosinh
2 years, 6 months agoshammous
2 years, 6 months agokopper2019
2 years, 6 months ago