3. Client and Server
Interview questions
Interview questions (with the counter-questions you'll get)
Q1. What happens when you type a URL into the browser and press Enter?
They're testing: whether you can describe the whole path in order, then go deep anywhere.
Think about your answer first, then open it.
Q2. GET vs POST?
They're testing: semantics, not just "POST has a body".
Think about your answer first, then open it.
Q3. PUT vs PATCH vs POST?
They're testing: idempotency and resource thinking.
Think about your answer first, then open it.
Q4. Which HTTP methods are idempotent, and why does it matter?
They're testing: reliability thinking.
Think about your answer first, then open it.
Q5. 401 vs 403? 502 vs 503 vs 504?
They're testing: precise codes, which shows real debugging experience.
Think about your answer first, then open it.
Q6. TCP vs UDP: when would you use each?
They're testing: trade-offs, not definitions.
Think about your answer first, then open it.
Q7. How does HTTPS work?
They're testing: a correct, simple mental model.
Think about your answer first, then open it.
Q8. HTTP/1.1 vs HTTP/2 vs HTTP/3?
They're testing: why each version exists.
Think about your answer first, then open it.
Q9. What does stateless mean, and why do we want stateless servers?
They're testing: the link between statelessness and scaling.
Think about your answer first, then open it.
Q10. Sessions or JWTs?
They're testing: trade-offs, especially revocation.
Think about your answer first, then open it.
Q11. What are cookies, and how do you keep them safe?
They're testing: basic web security awareness.
Think about your answer first, then open it.