A system administrator needs to automatically replace unhealthy EC2 instances in an AWS Auto Scaling group. Which component must be configured?
Auto Scaling health checks continuously probe instance and ELB status, then terminate and replace instances failing those checks, maintaining desired capacity automatically. This satisfies the requirement to replace unhealthy EC2 instances without manual intervention, unlike scaling policies that only react to demand metrics.
Why this answer
Auto Scaling Health Checks are the component that automatically detects and replaces unhealthy EC2 instances in an Auto Scaling group. When health checks are enabled, the group terminates instances that fail and launches replacements to maintain desired capacity.
Exam trap
CLO-002 often tests the confusion between CloudWatch Alarms (which trigger scaling policies) and Auto Scaling Health Checks (which directly replace unhealthy instances), leading candidates to pick alarms for replacement.
How to eliminate wrong answers
Option A is wrong because CloudWatch Alarms can trigger scaling actions based on metrics but do not directly replace unhealthy instances; they are a monitoring and alarm mechanism. Option B is wrong because an Elastic Load Balancer distributes traffic and performs its own health checks, but it does not replace instances; it only stops routing to unhealthy ones. Option C is wrong because an IAM Role grants permissions to AWS services but does not manage instance health or replacement.