LearnThatStack Ace your next interview
Computer Science Fundamentals
Networking for Developers.
Change topic Change
Practice · Questions

All questions

Showing of 50
Beginner 12
01

What happens when you type a URL into a browser and hit Enter?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The browser walks a fixed sequence of small steps before anything shows. First it parses the URL into scheme, host, and path. It resolves the hostname into an IP address. Then it opens a connection to that server on the right port.

Over that connection the browser sends an HTTP request for the path. The server replies with a status code and usually an HTML body. The browser parses the HTML and finds more resources: stylesheets, scripts, images. It fetches each one, often over the same connection.

Each step adds delay, so a slow page usually has one clear culprit. It might be DNS, connection setup, server time, or heavy assets. Knowing the sequence tells you where to look first.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

02

How does DNS turn a website hostname into an IP address?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

DNS acts like a phone book that maps names to addresses. Your machine asks a resolver, usually run by your ISP or a public service. The resolver checks its cache first. On a miss it walks the name hierarchy from the top.

It asks a root server, which points to the top-level domain server for .com. That points to the authoritative server for the domain. The authoritative server returns the actual IP address. The resolver hands that back to your program.

This lookup happens before any real request, so it sits on the critical path. A cold lookup can add tens of milliseconds. Caching along the way keeps most lookups fast.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

03

What is the difference between TCP and UDP, and when use each?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

TCP gives you a reliable, ordered stream; UDP gives you fast, best-effort messages. TCP sets up a connection, tracks every byte, and resends lost data. It delivers bytes in order, so what you send arrives whole.

UDP just fires packets with no handshake and no retries. Packets can arrive late, out of order, or not at all. In exchange it has almost no overhead and lower latency.

Reach for TCP when correctness matters: web pages, APIs, file transfers, databases. Reach for UDP when speed beats completeness: live video, voice calls, games, DNS lookups. Losing one frame of video beats stalling the whole stream.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

04

What are the common HTTP methods, and what does each one do?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

HTTP methods tell the server what action you want on a resource. Each request names one method up front. The common ones map to reading, creating, updating, and removing.

  • GET fetches a resource without changing it.
  • POST submits data, often to create something new.
  • PUT replaces a resource with the body you send.
  • PATCH updates part of a resource.
  • DELETE removes the named resource.
  • HEAD fetches only the headers, no body.

Picking the right method matters because caches, proxies, and browsers treat them differently. A GET can be cached and prefetched; a POST usually cannot. Using the wrong one causes surprising behavior. It also confuses other developers reading your API.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

05

What do the 2xx, 3xx, 4xx, and 5xx status code families mean?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Status codes come in families keyed by their first digit. The digit tells you who is happy and who has a problem. You can react to the family even before reading the exact code.

  • 2xx means success: the request worked, like 200 OK or 201 Created.
  • 3xx means redirect: look elsewhere, the resource moved or is unchanged.
  • 4xx means client error: your request was bad, like 404 Not Found or 401 Unauthorized.
  • 5xx means server error: the server broke while handling a valid request.

This split guides retries and blame. A 4xx usually will not improve if you retry the same request. A 5xx often will, since the fault sits on the server side.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

06

What is the difference between HTTP and HTTPS, and why it matters?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

HTTPS is plain HTTP wrapped inside an encrypted TLS connection. HTTP sends everything as readable text over the wire. HTTPS scrambles it so anyone in between sees only noise.

That layer does three jobs. It hides the content from eavesdroppers. It proves you reached the real server, not an impostor. It detects any tampering with the bytes in transit.

This matters because networks are full of untrusted hops: coffee-shop WiFi, ISPs, proxies. Without HTTPS, passwords and cookies travel in the clear. Browsers now mark plain HTTP pages as not secure, so HTTPS is the default. That is why login pages and payment forms always use it.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

07

What is the TCP three-way handshake, and why does it exist?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

The three-way handshake is how two machines agree to start a TCP connection. It takes three messages before any real data flows. Both sides pick a starting sequence number and confirm they can hear each other.

client -> SYN     (let's talk, my seq = x)
server -> SYN-ACK (ok, my seq = y, got your x)
client -> ACK     (got your y, let's go)

SYN means synchronize and ACK means acknowledge. The client's SYN proposes its own starting number. The server's SYN-ACK accepts that and proposes its number too. The final ACK confirms the server's number, so both agree.

It exists because TCP promises ordered, reliable delivery. That promise needs both sides to sync sequence numbers first. The handshake also confirms the path works in both directions. The cost is one round trip of delay before you send data.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

Related concept

Tailored explanation · switch back to · ·
What should the new diagram focus on?
How well did you know this?
AI:

08

What is a socket, and what does it represent to your program?

Part of Pro
09

What is the difference between latency and bandwidth, and why care?

Part of Pro
10

What is an IP address, and how does a port identify a process?

Part of Pro
11

What is a cookie, and how does a server use it across requests?

Part of Pro
12

What are the parts of a URL, and what does each part control?

Part of Pro
Intermediate 18
13

What makes an HTTP method safe versus idempotent, and why does it matter?

Part of Pro
14

When do you use PUT versus PATCH versus POST for updates?

Part of Pro
15

How does TCP guarantee reliable, in-order delivery of a byte stream?

Part of Pro
16

How does a TCP connection close gracefully, and what is the FIN exchange?

Part of Pro
17

What are the steps of a TLS handshake, and what does each achieve?

Part of Pro
18

What is HTTP keep-alive, and why do persistent connections matter?

Part of Pro
19

What is head-of-line blocking, and how does it hurt HTTP/1.1?

Part of Pro
20

How does HTTP/2 improve on HTTP/1.1 for real web applications?

Part of Pro
21

How does browser caching work with Cache-Control, ETag, and revalidation?

Part of Pro
22

What do the Secure, HttpOnly, and SameSite cookie attributes each protect against?

Part of Pro
23

Why does connection pooling matter, and what cost does it save?

Part of Pro
24

How do DNS caching and TTL affect how fast record changes propagate?

Part of Pro
25

What are the common DNS record types, and what is each used for?

Part of Pro
26

How does round-trip time shape the cost of opening a new HTTPS connection?

Part of Pro
27

What is the difference between a 301 and a 302 redirect?

Part of Pro
28

How does a client verify a server's TLS certificate and its chain?

Part of Pro
29

Why does DNS use UDP, and when does it fall back to TCP?

Part of Pro
30

HTTP is stateless, so how do applications keep users logged in?

Part of Pro
Expert 20
31

How does HTTP/2 multiplexing still suffer from TCP head-of-line blocking?

Part of Pro
32

How does HTTP/3 use QUIC over UDP to solve that blocking?

Part of Pro
33

What does TLS 1.3 change, and why is 0-RTT resumption risky?

Part of Pro
34

How does TCP slow start throttle throughput at the start of a connection?

Part of Pro
35

How do Nagle's algorithm and delayed ACK combine to add surprising latency?

Part of Pro
36

What is TCP TIME_WAIT, and how can it exhaust ports at scale?

Part of Pro
37

How does ephemeral port exhaustion happen under heavy outbound connection churn?

Part of Pro
38

What is the bandwidth-delay product, and why does it cap throughput on long links?

Part of Pro
39

How does chunked transfer encoding stream a response of unknown length?

Part of Pro
40

How do you make a non-idempotent request safe to retry?

Part of Pro
41

How do you design retries with backoff and jitter to avoid retry storms?

Part of Pro
42

How do connect timeouts and read timeouts differ, and how do you pick them?

Part of Pro
43

What race occurs when a client reuses a keep-alive connection the server just closed?

Part of Pro
44

How do you size a connection pool, and what breaks when it saturates?

Part of Pro
45

How does a cache stampede happen, and how do you prevent it?

Part of Pro
46

How does a WebSocket connection upgrade from an ordinary HTTP request?

Part of Pro
47

How do WebSockets, Server-Sent Events, and long polling compare for real-time updates?

Part of Pro
48

How does TCP flow control use the receive window to apply backpressure?

Part of Pro
49

How do MTU and MSS affect large transfers, and what is path MTU discovery?

Part of Pro
50

How do you diagnose a slow request across DNS, TCP, TLS, and server time?

Part of Pro

No matches

Try a different filter or search term.

Know someone prepping for Networking for Developers? Send them this set.
Pro · $10/mo

43 of 50 Networking for Developers answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

Serverless on AWS

Serverless Architecture on AWS

Flutter Mobile

Flutter Cross-Platform Mobile Development

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

AI Engineer

LLMs, RAG, Agents, Evals

AI-Powered Developer

Claude Code, Copilot, Agentic Workflows

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git