QuestionQ64

VerifiedSDLC Automation

A company operating many workloads on AWS has seen its Amazon EBS spend rise over time. The DevOps team finds many unattached EBS volumes. Although some workloads require detached volumes, volumes that have been detached for more than 14 days are stale and no longer required.

A DevOps engineer must create automation to delete EBS volumes that have remained unattached for 14 days.

Which solution will accomplish this?

Explanation

A daily scheduled Lambda function can identify volumes in the available state, retain a date tag that represents the start of the unattached period, and delete a volume only when that date is more than 14 days old and the volume is still unattached. EBS volumes must be detached before deletion, and EventBridge supports recurring scheduled invocation of Lambda functions. Amazon Data Lifecycle Manager automates snapshot and AMI lifecycle management rather than deletion of unattached EBS volumes.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!