Question 1 · choose 1
A company runs EBS-backed Amazon EC2 instances that are managed by Systems Manager. When AWS Health schedules an instance for retirement, the operations team stops and starts the instance by hand at a quiet moment so that it moves to a new host. The team wants this to happen automatically as soon as the retirement notice arrives. What should the DevOps engineer do?
- ACreate an EventBridge rule for the Health retirement event that starts the AWS-RestartEC2Instance Automation runbook for the instance
- BCreate an EventBridge rule for the Health retirement event that reboots the affected instance with the AWS-RebootEC2Instance runbook
- CDo nothing and let the scheduled stop happen during the maintenance window, because EC2 then starts the instance again on a new host
- DAdd a CloudWatch alarm with an EC2 recover action on the StatusCheckFailed_System metric of every instance
Show the answer and why
ACreate an EventBridge rule for the Health retirement event that starts the AWS-RestartEC2Instance Automation runbook for the instance
Correct
AWS Health sends AWS_EC2_PERSISTENT_INSTANCE_RETIREMENT_SCHEDULED for EBS-backed instances, and an EventBridge rule can run a Systems Manager Automation document that stops and starts the instance, which migrates it to a new host.
BCreate an EventBridge rule for the Health retirement event that reboots the affected instance with the AWS-RebootEC2Instance runbook
Incorrect
A reboot keeps the instance on the same host. Stopping and starting is what moves it, and it is not the same as rebooting.
CDo nothing and let the scheduled stop happen during the maintenance window, because EC2 then starts the instance again on a new host
Incorrect
The scheduled event stops the instance; the documented ways to move it are a manual or automated stop and start.
DAdd a CloudWatch alarm with an EC2 recover action on the StatusCheckFailed_System metric of every instance
Incorrect
The recover action reacts to failed system status checks. A scheduled retirement notice arrives before anything fails, so the alarm does not act on it.
Scheduled retirement of an EBS-backed instance can be handled ahead of time. AWS documents an EventBridge rule on the Health event that runs AWS-RestartEC2Instance through Systems Manager Automation, with an IAM role that lets EventBridge start the automation.
AWS documentation