W1: The Servers Are Fine but Nobody Can Reach Them
Illustrative interview practice. Generic company names and hostnames do not represent any specific organization.
W1: The Servers Are Fine but Nobody Can Reach Them
| Category | Finding the broken step |
|---|
Scenario
Interviewer Your servers are running. Their processor and memory look normal. Yet users cannot connect to the service at all. What could be wrong?
In plain words
The computers that run the service are healthy, but people's requests are not arriving, or not being answered. The question asks where, between a user's device and your server, a request could be getting lost.
You are not expected to guess the cause. You are expected to list the steps a request passes through and say how you would test each one.
Words you need
| Word | What it means |
|---|---|
| DNS | The internet's address book. It turns a name such as shop.example.com into the number of a computer. |
| Load balancer | A machine in front of your servers that shares incoming requests among them. |
| Firewall | A set of rules about which connections are allowed in or out. |
| Port | A number that says which program on a computer a connection is for. Secure websites use 443. |
| Packet | A small piece of data travelling across a network. A connection starts with one called SYN. |
Key Insight
A healthy server that nobody can reach is like a shop with the lights on and the staff ready, on a street that has been closed. The fault is on the way in. Walk the route a customer takes, one step at a time, and find the step where they stop.
Do not guess. At each step there is something you can look at that tells you whether requests got that far.
Explanation and Investigation
The route a request takes
| Step | What can go wrong there |
|---|---|
| DNS | The name no longer leads to your service |
| Routing between networks | Traffic never arrives at your site |
| Firewall | A rule blocks the port the service uses |
| Load balancer | It has stopped passing requests to the servers |
| Secure connection | The two sides cannot agree, so nothing is sent |
| Server | The program runs but is not listening where expected |
1. Are requests arriving at all?
Look at the load balancer's count of new connections. If it has fallen to nothing, requests are being lost before they reach you. That points to DNS, routing or a firewall at the edge.
If connections are arriving but none are answered, the fault is closer to the servers.
2. Does the name still lead to the right place?
dig shop.example.com +short # the addresses the name leads to right nowCompare the answer with the address of your load balancer. A wrong address here stops everyone at once.
3. Is the load balancer passing requests on?
Check that it still has a listener on the right port, and that it counts your servers as healthy. A common fault is a firewall rule between the load balancer and the servers that blocks the service's port.
4. Do requests reach a server?
ss -tln # which ports this server is listening on
sudo tcpdump -ni any port 443 # watch packets for that port as they arriveIf the server is listening but the second command shows no packets, something in front of the server is stopping them.
5. Ask what changed
Faults like this nearly always follow a change: a firewall rule, a load balancer setting or a DNS record. List the changes made in the last hour and undo the most likely one.
Model Answer
Interview-ready answer The servers are healthy, so I would look at the route to them. I would check whether connections are arriving at the load balancer at all. If not, I would check that the name still leads to the right address and that nothing at the edge blocks the port. If they are arriving, I would check the load balancer's listener, whether it sees the servers as healthy, and the firewall rules between them, then watch for packets on one server. Alongside that I would list recent changes and undo the most likely one.
Sample Candidate Answer and Evaluation
“It sounds like the network. I would raise an incident, get every team on a call, and restart the load balancer.”
| What to look at | Assessment |
|---|---|
| What is missing | It names no step on the route, tests nothing, and restarts something without evidence that it is at fault. |
| A better answer | Name the steps a request passes through. Say what you would look at for each, and in what order. Then say which recent change you would undo. |
| Level, on the 1 to 4 scale | 1 of 4 (Gap): acts before finding where requests stop |