Soru

Zorluk: KolayAuto Scaling and Elastic Load Balancing (ELB)

A company has a web application running on Amazon EC2 instances inside an Auto Scaling group (ASG). The instances are registered with an Amazon Application Load Balancer (ALB). The application process on several instances crashes, causing the ALB target group health checks to mark those instances as unhealthy. However, the ASG does not terminate and replace the unhealthy instances. Which configuration change will ensure that the Auto Scaling group automatically replaces instances that fail the Application Load Balancer health check?

  1. Update the Auto Scaling group health check type configuration from EC2 to ELB.Cevap
  2. B
    Configure an Amazon Route 53 latency routing policy with health checks to route traffic away from the unhealthy instances.
  3. C
    Modify the subnet's stateless Network Access Control List (NACL) outbound rules to allow return traffic on all ephemeral ports.
  4. D
    Change the target group health check settings to query the default HTTP port 80 instead of the custom port where the application runs.

Cevap

Update the Auto Scaling group health check type configuration from EC2 to ELB.
The correct answer is to update the Auto Scaling group's health check configuration to use ELB. By default, Auto Scaling groups only monitor EC2 status checks. If an application process crashes but the underlying EC2 instance remains running, the EC2 status checks will pass, and the Auto Scaling group will not replace the instance. Changing the health check type to ELB ensures the Auto Scaling group replaces any instance that fails the target group health checks.

Adım Adım Çözüm

1
Analyze the current state of the Auto Scaling group's health check configuration.
The Auto Scaling group is currently configured to use only the default EC2 health check type.
By default, an Auto Scaling group only monitors EC2 status checks (such as hardware failures or operating system status) and does not automatically monitor the application-level health status reported by the Application Load Balancer.
2
Identify the configuration that integrates load balancer status with Auto Scaling lifecycle management.
The health check type needs to be updated to ELB.
When the ELB health check type is enabled, the Auto Scaling group will consider an instance unhealthy if either the EC2 status checks fail or the Elastic Load Balancing target group health check fails.
3
Implement the configuration change on the Auto Scaling group.
The Auto Scaling group automatically terminates and replaces instances when they fail the load balancer health check.
This configuration bridges the gap between the application-level checks performed by the load balancer and the lifecycle management of the Auto Scaling group.

Anahtar Kavram

Auto Scaling Group Health Check Types
Tahmini Süre:1m 0s
Bu soruyu puanla