Interview Prep/Networking/Load balancers and reverse proxies

A database blip made every target fail its "deep" health check, the ALB marked them all unhealthy, and the whole site went down.

AdvancedTroubleshootingLoad balancers and reverse proxies
Answer

Likely causes → The health check endpoint tests downstream dependencies (DB, cache, other services). A shared dependency failing marks every instance unhealthy at once, so a partial outage becomes a full one. (An ALB fails open and routes to all targets when all are unhealthy, but other LBs, Kubernetes readiness, and DNS failover often don't.)

Diagnose →

curl -s http://<target>/healthz | jq .   # what does it check?
aws elbv2 describe-target-health --target-group-arn <tg> --query 'TargetHealthDescriptions[].TargetHealth'

Fix → Split checks: a shallow liveness/LB health check (process up, can serve) and a separate readiness or dependency status used for alerting. Let the app degrade gracefully (cached responses, feature flags) instead of failing the health check.

Prevent → Rule: an LB health check should only fail for problems that replacing this instance would fix.

All Networking questions Roadmap: Networking for DevOps

More on Load balancers and reverse proxies