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 →
- Terminate at the ALB or CDN when you want WAF inspection, central cert management (ACM) and lower app complexity
- Use TLS passthrough on NLB when the app must hold the key or you need mTLS end to end
- Re-encrypt to the backend (ALB to HTTPS target group) if compliance requires in-transit encryption inside the VPC
- 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.
More on Load Balancing, Proxies & CDN
What is the difference between a Layer 4 and a Layer 7 load balancer?BeginnerWhen do you choose an ALB and when an NLB in AWS?BeginnerForward proxy versus reverse proxy: what is the difference?BeginnerHow do health checks work on a load balancer and what makes a good one?BeginnerWhat are sticky sessions and why would you avoid them?BeginnerWhat does a CDN do and when does it help?Beginner