AWS Certified Cloud Practitioner / Question #1082 of 719

Question #1082

A solutions architect must design a system where any EC2 instances that become unhealthy are automatically terminated and replaced. Which AWS service is most appropriate for this requirement?

A

Amazon Elastic Kubernetes Service (Amazon EKS)

B

AWS CloudTrail

C

AWS Shield Advanced

D

AWS Auto Scaling

Explanation

AWS Auto Scaling (D) is designed to monitor the health of EC2 instances and automatically replace any that fail health checks, ensuring the system remains robust. It uses health checks (EC2 or Elastic Load Balancer-based) to detect issues and launches new instances to maintain the desired capacity.

Other options:
- A (Amazon EKS): Manages Kubernetes clusters, not direct EC2 instance health/replacement.
- B (AWS CloudTrail): Tracks API activity for auditing, unrelated to instance health.
- C (AWS Shield Advanced): Protects against DDoS attacks, not instance replacement.

Key Point: Auto Scaling ensures self-healing infrastructure by replacing unhealthy instances automatically.

Answer

The correct answer is: D