
Ultimate access to all questions.
Deep dive into the quiz with AI chat providers.
We prepare a focused prompt with your quiz and certificate details so each AI can offer a more tailored, in-depth explanation.
A company's HTTP application is behind a Network Load Balancer (NLB). The NLB's target group is configured to use an Amazon EC2 Auto Scaling group with multiple EC2 instances that run the web service.
The company notices that the NLB is not detecting HTTP errors for the application. These errors require a manual restart of the EC2 instances that run the web service. The company needs to improve the application's availability without writing custom scripts or code.
What should a solutions architect do to meet these requirements?
A
Enable HTTP health checks on the NLB, supplying the URL of the company's application.
B
Add a cron job to the EC2 instances to check the local application's logs once each minute. If HTTP errors are detected, the application will restart.
C
Replace the NLB with an Application Load Balancer. Enable HTTP health checks by supplying the URL of the company's application. Configure an Auto Scaling action to replace unhealthy instances.
D
Create an Amazon CloudWatch alarm that monitors the UnhealthyHostCount metric for the NLB. Configure an Auto Scaling action to replace unhealthy instances when the alarm is in the ALARM state.
Explanation:
Correct Answer: C
Why Option C is correct:
Why other options are incorrect:
Option A: NLB cannot perform HTTP health checks. NLB only supports TCP, TLS, UDP, and TCP_UDP health checks, not HTTP/HTTPS.
Option B: This requires writing custom scripts (cron job) and application-level monitoring, which violates the requirement of "without writing custom scripts or code."
Option D: While CloudWatch alarms can monitor NLB metrics, the UnhealthyHostCount metric relies on NLB's health check status. Since NLB cannot perform HTTP health checks, it won't detect HTTP errors. Additionally, this approach adds complexity compared to the integrated ALB + Auto Scaling solution.
Key AWS Concepts:
Best Practice: For HTTP/HTTPS applications that require application-level health monitoring, use ALB instead of NLB to leverage HTTP health checks and seamless integration with Auto Scaling.