Bird
0
0

If the health check path is set to "/health" but the application returns HTTP 500 errors for this path, what will the load balancer do?

medium📝 Debug Q7 of 15
AWS - Elastic Load Balancing
If the health check path is set to "/health" but the application returns HTTP 500 errors for this path, what will the load balancer do?
AMark the target as unhealthy after threshold failures
BIgnore the HTTP 500 and mark target healthy
CAutomatically change the health check path
DRestart the target instance
Step-by-Step Solution
Solution:
  1. Step 1: Understand health check response codes

    Health checks expect successful HTTP status codes (2xx or 3xx) to mark targets healthy.
  2. Step 2: Effect of HTTP 500 errors

    HTTP 500 indicates server error; repeated failures cause the load balancer to mark the target unhealthy after reaching the UnhealthyThresholdCount.
  3. Final Answer:

    Mark the target as unhealthy after threshold failures -> Option A
  4. Quick Check:

    HTTP 500 causes health check failures [OK]
Quick Trick: HTTP 500 causes health check failures [OK]
Common Mistakes:
  • Assuming load balancer ignores server errors
  • Thinking health check path changes automatically
  • Believing load balancer restarts targets

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes