Interview Prep/Networking/Load Balancing, Proxies & CDN

Where do you terminate TLS: at the load balancer, at the app, or both?

IntermediateScenarioLoad Balancing, Proxies & CDN
Answer

Situation read → Trade-off between simplicity, inspection and end-to-end encryption.

What I'd do →

  1. Terminate at the ALB or CDN when you want WAF inspection, central cert management (ACM) and lower app complexity
  2. Use TLS passthrough on NLB when the app must hold the key or you need mTLS end to end
  3. Re-encrypt to the backend (ALB to HTTPS target group) if compliance requires in-transit encryption inside the VPC
  4. Use ACM certs for the LB and a private CA for internal hops

Why → Terminating at the edge lets you inspect traffic; passthrough keeps the key out of the LB.

Interview tip → Say compliance requirements, not preference, usually decides.

All Networking questions Roadmap: Networking for DevOps

More on Load Balancing, Proxies & CDN