AWS Certified DevOps Engineer – Professional — Question 32

A company that runs many workloads on AWS has an Amazon EBS spend that has increased over time. The DevOps team notices there are many unattached
EBS volumes. Although there are workloads where volumes are detached, volumes over 14 days old are stale and no longer needed. A DevOps engineer has been tasked with creating automation that deletes unattached EBS volumes that have been unattached for 14 days.
Which solution will accomplish this?

Answer options

Correct answer: C

Explanation

Option C is correct because it directly targets unattached EBS volumes and deletes those that have been idle for more than 14 days, fulfilling the requirement for automation. Option A is incorrect as it does not automate the deletion but rather schedules a check. Option B is not suitable because it requires a lifecycle policy that may not specifically address the 14-day condition. Option D is flawed since it adds unnecessary steps by creating snapshots before deletion.