The ALB health checks fail only for targets in one subnet. What could differ?
IntermediateScenarioVPC and Networking
Answer
Situation read → One subnet differs in routing, NACL, or SG source.
What I'd do →
- Compare NACLs on the failing subnet for the health check port
- Confirm the target SG allows the ALB SG on the health check port
- Confirm the subnet is enabled for the ALB's AZ
- Check the instance's local firewall and app listening address with
ss -ltnp
Why → Health checks originate from ALB ENIs in the enabled subnets, so subnet-level rules matter.
Interview tip → Mention app binding to 127.0.0.1 as the classic cause.
More on VPC and Networking
What is a VPC and what are the CIDR constraints?BeginnerWhat makes a subnet public or private?BeginnerHow do route tables work, including the local route and longest-prefix match?IntermediateInternet Gateway vs NAT Gateway: what does each do?BeginnerNAT Gateway vs NAT instance?IntermediateSecurity group vs network ACL: compare them.Beginner