Q61 — AWS DOP-C02 Ch.2
Question 61 of 100 | ← Chapter 2
A company uses Amazon EC2 instances backed by Amazon EBS storage to host a temporary web application. The company wants to recover quickly with minimal data loss when the EC2 instance experiences network connectivity issues or power failures.
- A. Add the instance to an EC2 Auto Scaling group with minimum capacity, maximum capacity, and desired capacity all set to 1.
- B. Add the instance to an EC2 Auto Scaling group with a lifecycle hook to detach the EBS volume when the EC2 instance is shut down or terminated.
- C. Create an Amazon CloudWatch alarm for the StatusCheckFailed system metric and select the EC2 action to recover the instance. ✓
- D. Create an Amazon CloudWatch alarm for the StatusCheckFailed Instance metric and select the EC2 action to reboot the instance.
Correct Answer: C. Create an Amazon CloudWatch alarm for the StatusCheckFailed system metric and select the EC2 action to recover the instance.
Explanation
The StatusCheckFailed system metric checks the health of the underlying host system for an EC2 instance. If this check fails, it indicates an issue with the host's hardware, network, or power—potentially causing instance interruption. When an alarm triggers on the StatusCheckFailed system metric, the EC2 'recover' action (which stops and then starts the instance) can be automatically executed. This enables rapid recovery with minimal data loss when network or power failures occur.