Q38 — AWS DOP-C02 Ch.1
Question 38 of 100 | ← Chapter 1
A company hosts a web application on Amazon EC2 instances backed by Amazon EBS storage. The company wants to recover quickly with minimal data loss when network connectivity or power failures occur on the EC2 instances.
- A. Add the instance to an EC2 Auto Scaling group and set minimum, maximum, and desired capacity to 1.
- B. Add the instance to an EC2 Auto Scaling group using lifecycle hooks to detach the EBS volume when the EC2 instance shuts down or terminates.
- C. Create an Amazon CloudWatch alarm for the StatusCheckFailed_System metric and select the EC2 Recover instance action. ✓
- D. Create an Amazon CloudWatch alarm for the StatusCheckFailed_Instance metric and select the EC2 Reboot instance action.
Correct Answer: C. Create an Amazon CloudWatch alarm for the StatusCheckFailed_System metric and select the EC2 Recover instance action.
Explanation
EC2 system status checks monitor the underlying host hardware (network, power, etc.). When these fail, the EC2 Recover action migrates the instance to new, healthy hardware while preserving the EBS volume, instance ID, private IP, and Elastic IP—minimizing downtime and data loss. Option C directly addresses system-level failures described in the scenario. Option D triggers reboot on instance status check failure (OS-level issues), which does not resolve underlying hardware faults. Option A provides redundancy but does not guarantee rapid recovery of the same instance state. Option B’s lifecycle hooks apply only during intentional termination—not unplanned failures—and do not automate recovery.