Q1 What happens when you type a URL and press enter?
Show the answer Hide the answer
DNS resolves the name to an address, TCP connects, TLS negotiates if it is HTTPS, an HTTP request goes out, the response comes back, and the browser renders it.
The steps worth naming: the browser checks its own and the OS cache before asking a resolver; the TCP handshake is three packets; TLS adds its own round trips; the server replies with a status and a body; then the browser parses HTML, discovers CSS and JavaScript, and fetches those too. Each of those is a place latency comes from.
What it is really testing. Breadth and ordering. This is the single most-asked networking question because it lets the interviewer follow up on whichever step they care about.