CS FundamentalsModerateProduct-company interview pattern

You type https://shop.example.com into a browser that has nothing cached. In which order do these happen? 1. TLS handshake 2. DNS resolution 3. HTTP GET request 4. TCP three-way handshake

  1. A. 2, 1, 4, 3
  2. B. 4, 2, 1, 3
  3. C. 2, 4, 3, 1
  4. D. 2, 4, 1, 3

Correct answer: D. 2, 4, 1, 3

The browser first needs the IP address (DNS), then a TCP connection, then TLS on top of TCP, and only then sends the HTTP request inside the encrypted channel. TLS cannot start before TCP is established, and the GET must be encrypted, so it comes last.

More Computer Networks questions

Exams that ask this topic