7. Load Balancers, Reverse Proxies and API Gateways
Interview questions
Interview questions (with the counter-questions you'll get)
Q1. What does a load balancer do, and why do we need one?
They're testing: the basics, plus why it matters.
Think about your answer first, then open it.
Q2. L4 vs L7 load balancing?
They're testing: knowing what each layer can see.
Think about your answer first, then open it.
Q3. Round robin vs least connections: when does it matter?
They're testing: algorithm trade-offs.
Think about your answer first, then open it.
Q4. How do health checks work, and what can go wrong?
They're testing: operational depth.
Think about your answer first, then open it.
Q5. What are sticky sessions, and what's wrong with them?
They're testing: the stateless principle.
Think about your answer first, then open it.
Q6. What is SSL termination? Is it safe?
They're testing: security and trade-off awareness.
Think about your answer first, then open it.
Q7. The load balancer is a single point of failure. How do you fix it?
They're testing: redundancy at every layer.
Think about your answer first, then open it.
Q8. Forward proxy vs reverse proxy?
They're testing: precise vocabulary.
Think about your answer first, then open it.
Q9. What does an API gateway do, and when would you not want one?
They're testing: knowing its value and its risks.
Think about your answer first, then open it.
Q10. How would you route users to the nearest region?
They're testing: global traffic basics.
Think about your answer first, then open it.