Typing a URL to a Rendered Page, and the Encryption Behind HTTPS

Quick Overview

A whiteboard question tracing everything between typing a website address into a browser and seeing the rendered page, followed by which encryption algorithms secure that page load. It tests DNS, TCP or QUIC, TLS, HTTP, CDNs and browser rendering, plus key exchange, signatures and symmetric ciphers.

Typing a URL to a Rendered Page, and the Encryption Behind HTTPS

Company: ByteDance

Role: Site Reliability Engineer

Category: Software Engineering Fundamentals

Difficulty: easy

Interview Round: Technical Screen

The interviewer hands you a whiteboard and asks you to explain, drawing as you go, what happens between typing `www.tiktok.com` into a browser's address bar and seeing the page displayed. Afterwards the interviewer asks what you know about the related encryption algorithms; this version reads that as the cryptography that protects this page load over HTTPS. The role is a security-focused site reliability engineering internship. ### Clarifying Questions - Should I assume a desktop browser visiting the site for the first time, with nothing cached? - How much depth do you want on the server side compared with the network and the browser? - Should I assume HTTP/2 over TCP, HTTP/3 over QUIC, or cover both? ### Part 1 — From the address bar to a rendered page Walk through every step from the keystrokes to the rendered page, drawing the components involved and the order in which they act. ```hint Group by who does the work Organize the steps by actor: the browser, the name system, the network path to the servers, the servers themselves, and the browser again once the response arrives. ``` #### What This Part Should Cover - Name resolution from the browser's caches down to the authoritative servers, and how the answer can point at a server close to the user - Connection setup and the secure handshake, in the right order relative to the first HTTP request - The request's path through edge servers, load balancers and backend services, and the response that comes back - Parsing, loading of further resources and rendering until the page is visible ### Part 2 — The encryption behind the page Which encryption algorithms are involved in loading this page securely, what does each one do, and why does the protocol combine several kinds instead of using one? ```hint Three separate problems Separate agreeing on a secret with a server you have never met, proving that the server is who it claims to be, and protecting every byte afterwards. Each calls for a different kind of algorithm. ``` #### What This Part Should Cover - Asymmetric key exchange and digital signatures, and the role of certificates - Symmetric authenticated encryption for the bulk data, and why the data is not encrypted with public-key algorithms - Hash functions and key derivation - Forward secrecy, and what happens if the server's private key leaks later ### What a Strong Answer Covers - A clear end-to-end ordering of the steps with a readable diagram, at a depth that follows the interviewer's cues - Caching at each layer (browser, operating system, resolver, CDN) and how it shortens a repeat visit - Correct placement of the TLS handshake relative to DNS, the transport connection and the first HTTP request - Linking each algorithm in Part 2 to the exact moment it is used in Part 1 - Failure points such as DNS errors, certificate errors and timeouts, and how each looks to the user ### Follow-up Questions - How does the browser know the certificate it received really belongs to the site, and what happens if a certificate authority is compromised? - The page loads slowly for users in one country only. Which steps would you investigate? - What changes if the same user loads the page again a minute later? - What attack does HSTS prevent, and why does the preload list matter for the first visit?

Overview: A whiteboard question tracing everything between typing a website address into a browser and seeing the rendered page, followed by which encryption algorithms secure that page load. It tests DNS, TCP or QUIC, TLS, HTTP, CDNs and browser rendering, plus key exchange, signatures and symmetric ciphers.

ByteDance logo
ByteDance
Apr 9, 2026
easySite Reliability EngineerTechnical ScreenSoftware Engineering Fundamentals
1
0

The interviewer hands you a whiteboard and asks you to explain, drawing as you go, what happens between typing www.tiktok.com into a browser's address bar and seeing the page displayed. Afterwards the interviewer asks what you know about the related encryption algorithms; this version reads that as the cryptography that protects this page load over HTTPS. The role is a security-focused site reliability engineering internship.

Clarifying Questions Guidance

  • Should I assume a desktop browser visiting the site for the first time, with nothing cached?
  • How much depth do you want on the server side compared with the network and the browser?
  • Should I assume HTTP/2 over TCP, HTTP/3 over QUIC, or cover both?

Part 1 — From the address bar to a rendered page

Walk through every step from the keystrokes to the rendered page, drawing the components involved and the order in which they act.

What This Part Should Cover Guidance

  • Name resolution from the browser's caches down to the authoritative servers, and how the answer can point at a server close to the user
  • Connection setup and the secure handshake, in the right order relative to the first HTTP request
  • The request's path through edge servers, load balancers and backend services, and the response that comes back
  • Parsing, loading of further resources and rendering until the page is visible

Part 2 — The encryption behind the page

Which encryption algorithms are involved in loading this page securely, what does each one do, and why does the protocol combine several kinds instead of using one?

What This Part Should Cover Guidance

  • Asymmetric key exchange and digital signatures, and the role of certificates
  • Symmetric authenticated encryption for the bulk data, and why the data is not encrypted with public-key algorithms
  • Hash functions and key derivation
  • Forward secrecy, and what happens if the server's private key leaks later

What a Strong Answer Covers Guidance

  • A clear end-to-end ordering of the steps with a readable diagram, at a depth that follows the interviewer's cues
  • Caching at each layer (browser, operating system, resolver, CDN) and how it shortens a repeat visit
  • Correct placement of the TLS handshake relative to DNS, the transport connection and the first HTTP request
  • Linking each algorithm in Part 2 to the exact moment it is used in Part 1
  • Failure points such as DNS errors, certificate errors and timeouts, and how each looks to the user

Follow-up Questions Guidance

  • How does the browser know the certificate it received really belongs to the site, and what happens if a certificate authority is compromised?
  • The page loads slowly for users in one country only. Which steps would you investigate?
  • What changes if the same user loads the page again a minute later?
  • What attack does HSTS prevent, and why does the preload list matter for the first visit?