exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 441 discussion

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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kaylaychy
Highly Voted 3 years, 7 months ago
Answer is C. NLB is layer 4 for TCP and UDP. ALB is best for HTTP and HTTPS
upvoted 28 times
noahsark
3 years, 7 months ago
https://aws.amazon.com/elasticloadbalancing/features/
upvoted 3 times
...
Venki_dev
3 years, 1 month ago
that is only for the traffic, question here talks about what happening within NLB and how to rectify it.
upvoted 1 times
...
Tapsinha
3 years, 7 months ago
Ans should be A. https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html For a UDP service, target availability can be tested using non-UDP health checks on your target group. You can use any available health check (TCP, HTTP, or HTTPS), and any port on your target to verify the availability of a UDP service. .
upvoted 6 times
RiyazCenation
3 years, 6 months ago
people with half half knowledge like u will make the content more complicated. Ans is C
upvoted 6 times
gargaditya
3 years, 5 months ago
I guess you are the one with half knowledge and no hands on.
upvoted 3 times
...
...
...
...
patriktre
Highly Voted 3 years, 7 months ago
C is correct. https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html ..You can configure health checks, which are used to monitor the health of the registered targets so that the load balancer can send requests only to the healthy targets...
upvoted 9 times
...
naveenagurjara
Most Recent 2 years, 10 months ago
Selected Answer: C
For A it says ..... supplying the URL of the company's application. This is not possible with NLB
upvoted 2 times
...
bighedgedog
2 years, 11 months ago
Selected Answer: C
Both NLB and ALB support HTTP URL Health Checks. However, autoscale doesn't consider them by default, you have to configure it so when the ELB health checks fail, the instance is considered unhealthy and autoscale replaces it with a new one. That's only described in option C. There's no need to change from NLB to ALB but option C is the only one that includes the config to replace unhealthy instances.
upvoted 5 times
...
rubds
3 years ago
Correct Answer is C. As for A, it mentions to supply URL of the Application but NLB uses IP address in the header field for the health checks. For HTTP or HTTPS health check requests, the host header contains the IP address of the load balancer node and the listener port, not the IP address of the target and the health check port.
upvoted 1 times
...
Venki_dev
3 years, 1 month ago
Selected Answer: A
The firm sees that the application's HTTP faults are not being detected by the NLB. meaning there is no healthcheck configured, or faulty healthcheck , so just verify your healthcheck or create one . NLB can perform health check on Http also , For HTTP or HTTPS health check requests, the host header contains the IP address of the load balancer node and the listener port, not the IP address of the target and the health check port https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html
upvoted 1 times
...
Phongsanth
3 years, 3 months ago
Selected Answer: C
NLB can do health check but not for Host or URL. ALB can do health check for their listener rule as Host (URL). Answer is C. https://docs.aws.amazon.com/elasticloadbalancing/latest/application/listener-update-rules.html#edit-rule
upvoted 3 times
...
momedkri117
3 years, 3 months ago
Selected Answer: C
in my opinion it's C
upvoted 1 times
...
envest
3 years, 4 months ago
IMO: C because of default health check; applying NLB's http/s protocol is feasible but still bears config risks: https://stackoverflow.com/questions/48135471/nlb-target-group-health-checks-are-out-of-control
upvoted 1 times
...
Edgarrt
3 years, 4 months ago
Selected Answer: C
Replace the NLB with an Application Load Balancer. Enable HTTP health checks by supplying the URL of the company’sapplication. Configure an Auto Scaling action to replace unhealthy instances. Health check + replace instance
upvoted 1 times
...
rav009
3 years, 4 months ago
Selected Answer: A
NLB can do HTTP health check too. "Configure an Auto Scaling action to replace unhealthy instances." is not necessary. So A
upvoted 1 times
osel
3 years, 3 months ago
To add on, the question also states that "The target group of the NLB is set to use an Amazon EC2 Auto Scaling group with numerous EC2 instances running the web service" meaning that ASG already setup and running with the NLB. Thus, solely need answer A to enable HTTP healthcheck on the NLB will address the App's availability issue.
upvoted 1 times
...
...
gargaditya
3 years, 5 months ago
It should be A, one needs to realise though NLB serve L4 requests/works at L4 ,health checks can be L7/HTTP based. https://docs.aws.amazon.com/elasticloadbalancing/latest/network/target-group-health-checks.html HealthCheckProtocol The protocol the load balancer uses when performing health checks on targets. The possible protocols are HTTP, HTTPS, and TCP. The default is the TCP protocol.
upvoted 2 times
jihun
3 years, 5 months ago
how it will address the "wants to increase the availability" ?
upvoted 2 times
...
Edgarrt
3 years, 4 months ago
NLN can handler health checj but ans A only enables a health check which makes the NLB route messages to the healthy instances but does't restart the instance so i think its C
upvoted 2 times
...
...
Indusri
3 years, 6 months ago
CCCCCCC
upvoted 4 times
...
spydii
3 years, 6 months ago
vete la verg, C HTTP-> ALB UDP-> NLB
upvoted 3 times
...
Gats
3 years, 7 months ago
C. ALB is best for http traffic
upvoted 6 times
...
sic6sic
3 years, 7 months ago
Agreed with C. ALB provides better health checks and CloudWatch metrics.
upvoted 3 times
...
dumdumex
3 years, 8 months ago
Why not D?
upvoted 1 times
noahsark
3 years, 7 months ago
C https://aws.amazon.com/elasticloadbalancing/features/
upvoted 4 times
...
theCreatorSD
3 years, 7 months ago
This problem is not about unhealthy host. It’s about the HTTP Error. So it does not need to configure ASG about unhealthy host, I think.
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago