AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 148

An ecommerce company uses a large number of Amazon Elastic Block Store (Amazon EBS) backed Amazon EC2 instances. To decrease manual work across all the instances, a DevOps engineer is tasked with automating restart actions when EC2 instance retirement events are scheduled.

How can this be accomplished?

Answer options

Correct answer: D

Explanation

The correct answer is D because it directly addresses the automation of actions in response to scheduled retirement events by using AWS Health and EventBridge to trigger the necessary runbooks. Option A does not automate the response to immediate retirement events, but rather checks weekly. Option B focuses on recovery during maintenance windows, which doesn't directly address the need for immediate action on retirement events. Option C involves manual restarts during a maintenance window, which does not provide the required automation.