All jobs / Backend developer / Deployment Basics
Backend developer interview question · 0–1 years
Why put a load balancer in front of two web servers instead of pointing DNS at one?
The strongest answer
It spreads traffic across healthy servers, drops a server that fails its health check, ends TLS in one place and lets you add or replace servers without touching DNS
Why it works
Right. Availability, health checking and a stable front door are the reasons.
What a good answer covers
- Distributes across healthy servers.
- Removes a failing server via health checks.
- One place to terminate TLS.
- Add and replace servers behind a stable address.
Answers that fall short
- Close, but not the strongest: It makes each request faster
It does not speed up a single request; it lets you serve more of them and survive a failure. - Weak: It is required by the provider
Nothing requires it; it solves a problem. - Red flag: It caches the pages so the servers do less work
Caching is a CDN's job; a load balancer distributes.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Cybersecurity
- Solutions / cloud architect
More Deployment Basics questions
- What does autoscaling actually do, and what does it not do?
- Why choose a managed database service over running the database yourself on a VM?
- What is a cold start in a serverless function?
- Cloud is pay for what you use. What is the cost people forget most often?
- The interviewer asks: “How do you log from a service in production?” Strongest answer?
- The interviewer asks: “Liveness versus readiness — what do you expose?” Strongest answer?
- The interviewer asks: “A user says checkout failed at 16:02. How do you find it in logs?” Strongest answer?
- The interviewer asks: “How do you observe a production service?” Strongest answer?