A SysOps team wants to automate recovery of an EC2 instance when the underlying host fails. The recovered instance must retain the same private IP and the same Elastic IP as the original instance. The team also must get an email when recovery begins. Which solution satisfies these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a CloudWatch alarm for the instance using the StatusCheckFailed_System metric; add an EC2 recover action to the alarm and configure the alarm to publish to an SNS topic that emails the SysOps team..
Why this is the answer
The correct solution uses a CloudWatch alarm with the StatusCheckFailedSystem metric because this metric indicates issues with the underlying host, such as loss of network connectivity, power, or hardware problems. The EC2 recover action automatically migrates the instance to a healthy host while retaining its private IP address, Elastic IP address, and all instance metadata. Publishing to an SNS topic sends the required email notification. The StatusCheckFailedInstance metric monitors issues within the instance's operating system or applications, not the underlying host, so it wouldn't trigger recovery for host failures. Auto Scaling groups are designed for scaling and high availability across multiple instances or AZs, not for recovering a single instance while preserving its private IP and Elastic IP. While Auto Scaling can launch new instances, it assigns new private IPs by default and doesn't directly re-associate existing Elastic IPs in this scenario.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed