exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 598 discussion

Exam question from Amazon's AWS-SysOps
Question #: 598
Topic #: 1
[All AWS-SysOps Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
white_shadow
Highly Voted 2 years, 6 months ago
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.
upvoted 11 times
karmaah
2 years, 6 months ago
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.
upvoted 5 times
nicat
2 years, 6 months ago
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.
upvoted 7 times
nicat
2 years, 6 months ago
http://asvignesh.in/aws-lambda-delete-old-ebs-snapshots-using-boto3/
upvoted 3 times
...
...
...
...
chris82
Highly Voted 2 years, 7 months ago
i would choose C.
upvoted 9 times
...
albert_kuo
Most Recent 9 months, 4 weeks ago
Selected Answer: 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.
upvoted 1 times
...
RicardoD
2 years, 5 months ago
C is the Answer
upvoted 1 times
...
Chirantan
2 years, 5 months ago
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.
upvoted 1 times
...
HVarada
2 years, 5 months ago
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.
upvoted 2 times
...
abhishek_m_86
2 years, 5 months ago
C. Schedule an AWS Lambda function using Amazon CloudWatch Events to periodically run a script to delete old snapshots.
upvoted 2 times
...
Radhaghosh
2 years, 5 months ago
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
upvoted 4 times
...
tahaRyski
2 years, 5 months ago
The answer is definitely C https://cloud.netapp.com/blog/automate-ebs-volumes-cost-efficiency
upvoted 1 times
...
dozymars
2 years, 5 months ago
S3 lifecycle policy can be configured to automate transition of Data in S3. A is the Answer
upvoted 2 times
Radhaghosh
2 years, 5 months ago
S3 saves EBS snapshot but you can't see it. So you can not use the S3 Lifecycle Policy to delete them
upvoted 1 times
Radhaghosh
2 years, 5 months ago
The answer is definitely C
upvoted 1 times
...
...
...
jackdryan
2 years, 5 months ago
I'll go with C
upvoted 2 times
...
SONLE
2 years, 6 months ago
S3 saves EBS snapshot but you can't see it. So you can not use the S3 Lifecycle Policy to delete them
upvoted 2 times
...
AWS1212
2 years, 6 months ago
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/
upvoted 1 times
...
firstabed
2 years, 6 months ago
C. Schedule an AWS Lambda function using Amazon CloudWatch Events to periodically run a script to delete old snapshots.
upvoted 1 times
...
asim1982
2 years, 6 months ago
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.
upvoted 2 times
...
teosinh
2 years, 6 months ago
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".
upvoted 1 times
...
shammous
2 years, 6 months ago
"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.
upvoted 6 times
kopper2019
2 years, 6 months ago
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
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago