After changing the health check path, the ALB shows "Health checks failed with these codes: [404]" for every target.

IntermediateTroubleshootingSite down
Answer

Likely causes → The new path doesn't exist on the deployed version yet, the app serves it only on a different host header, or the matcher expects 200 while the endpoint returns 301/302.

Diagnose →

aws elbv2 describe-target-groups --target-group-arns $TG \
  --query 'TargetGroups[].[HealthCheckPath,HealthCheckPort,Matcher]'
curl -s -o /dev/null -w '%{http_code}\n' http://<target-ip>:8080/healthz

Fix → Revert the path, or set the matcher to the real code (for example 200-399). Ship the health endpoint before switching the LB to it.

Prevent → Health check config lives with the app's chart/IaC and is deployed in the same change, and every service exposes a standard /healthz.

All Real-World Interview questions Roadmap: Interview readiness

More on Site down