Questions: HTTP: Hypertext Transfer Protocol

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A user logs into a website on Monday. On Tuesday, they visit the same website and are still logged in. How does the server recognize the returning user, given that HTTP is stateless?

AHTTP maintains a persistent session internally; the server remembers TCP connection history
BThe server stored a cookie on the client during login; the browser sends this cookie with every subsequent request
CThe user's IP address is recorded and used to look up their session automatically
DHTTP/1.1 introduced stateful sessions, so the server maintains login state natively
Question 2 Multiple Choice

A client sends 'GET /api/products HTTP/1.1' to a server. According to HTTP semantics, what should the server do?

AReturn a list of products without modifying any server-side data
BCreate a new product entry and return its ID
CDelete the products resource since GET triggers retrieval then cleanup
DReturn an error — GET requests cannot target API endpoints, only HTML pages
Question 3 True / False

HTTP is stateless by design, meaning it is a limitation that developers should work around to build real web applications.

TTrue
FFalse
Question 4 True / False

HTTP/3 uses a different underlying transport protocol than HTTP/1.1 and HTTP/2.

TTrue
FFalse
Question 5 Short Answer

What does it mean that HTTP is stateless, and why does this design make web servers easier to scale?

Think about your answer, then reveal below.