A company is designing a network for a three-tier web application. The web tier must be accessible from the internet, while the application and database tiers must be in private subnets. The company wants to minimize the number of load balancers. Which design should be used?
Allows direct internet access to web tier; app tier remains private.
Why this answer
An internet-facing Application Load Balancer (ALB) in a public subnet can receive internet traffic and forward it to web tier instances in public subnets, while the application and database tiers remain in private subnets with no direct internet access. This design uses a single load balancer to handle all external traffic, minimizing the number of load balancers while maintaining security boundaries.
Exam trap
The trap here is that candidates assume all internal tiers must be in private subnets and forget that the web tier itself must be in public subnets to receive traffic from the internet-facing ALB, or they mistakenly think an internal ALB can be made internet-facing via a NAT gateway.
How to eliminate wrong answers
Option A is wrong because an internal ALB in a private subnet cannot receive traffic directly from the internet; a NAT gateway provides outbound internet access for private instances, not inbound, so the web tier would be unreachable. Option B is wrong because a Network Load Balancer (NLB) operates at Layer 4 and cannot perform content-based routing or inspect application-layer protocols, making it unsuitable for a three-tier web application that typically requires HTTP/HTTPS path-based routing. Option D is wrong because an internet-facing ALB must be placed in a public subnet to have a public IP address and route traffic from the internet; placing it in a private subnet would prevent it from receiving internet traffic.