
Answer-first summary for fast verification
Answer: Switch to an Application Load Balancer, set up health checks with the application URL, and automate instance replacement for unhealthy ones via Auto Scaling.
The correct answer is C. An Application Load Balancer (ALB) is better suited for HTTP/HTTPS traffic as it operates on Layer 7, which gives it the ability to conduct more detailed health checks and better understand the HTTP/HTTPS traffic compared to a Network Load Balancer (NLB). By enabling HTTP health checks with the ALB and providing the application's URL, unhealthy instances can be detected and replaced automatically using the Auto Scaling feature, thus improving the availability of the application without writing custom scripts or code.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company's web application operates behind an NLB with an associated Auto Scaling group for EC2 instances. The NLB fails to detect HTTP errors, necessitating manual restarts for affected instances. How can a solutions architect enhance the application's availability without custom scripting?
A
Implement HTTP health checks on the NLB with the application's URL.
B
Introduce a cron job on EC2 instances to scan logs for HTTP errors, triggering an application restart if found.
C
Switch to an Application Load Balancer, set up health checks with the application URL, and automate instance replacement for unhealthy ones via Auto Scaling.
D
Establish a CloudWatch alarm for the NLB's UnhealthyHostCount metric to trigger Auto Scaling actions for unhealthy instance replacement.