A company hosts a specialized data processing service on Amazon EC2 instances. The instances are managed by an Auto Scaling group (ASG) behind an Application Load Balancer (ALB). The backend application runs on custom port . The target group is configured to route traffic to the instances on port , but the default health checks are failing, and the ALB marks all newly launched instances as unhealthy. Additionally, during scale-in events, active client connections—which can take up to minutes ( seconds) to complete—are being terminated abruptly before finishing their tasks.
Which two actions should a Solutions Architect take to resolve these issues? (Select two.)
- Set the deregistration delay timeout attribute of the ALB target group to seconds.Cevap
- Modify the target group's health check configuration to explicitly use port .Cevap
- CAdd an outbound rule to the subnet's Network ACL (NACL) to statefully track and allow active connections on port during instance termination.
- DConfigure an Amazon Route 53 latency-based routing policy to direct client traffic away from instances that are terminating during scale-in.
- EConfigure the target group's default port to and enable sticky sessions (session affinity) with a cookie duration of seconds.
Cevap
Setting the target group deregistration delay to seconds and modifying the health check configuration to target port explicitly.
The correct options are to increase the target group's deregistration delay to seconds and explicitly set the health check port to . Increasing the deregistration delay allows active transactions to complete gracefully during scale-in. Explicitly targeting port in the health check ensures the load balancer accurately monitors the backend application.
Adım Adım Çözüm
Anahtar Kavram
ELB connection draining (deregistration delay) configuration and target group port mapping for health checks.