Q23 — AWS DOP-C02 Ch.2

Question 23 of 100 | ← Chapter 2

A company running many workloads on AWS observes increasing Amazon EBS costs over time. The DevOps team notices many unattached EBS volumes. Although some unattached volumes are associated with active workloads, volumes older than 14 days are confirmed idle and no longer needed. A DevOps engineer must create automation to delete unattached EBS volumes that have been unattached for 14 days.

Correct Answer: C. Create an Amazon CloudWatch Events rule to run an AWS Lambda function daily. The Lambda function should locate unattached EBS volumes, tag them with the current date, and delete unattached volumes whose tag date is older than 14 days.

Explanation

Reference: https://aws.amazon.com/blogs/mt/controlling-your-aws-costs-by-deleting-unused-amazon-ebs-volumes/