Prepin
Log in

Explain the process that occurs when you access https://google.com in your web browser.

Approach / Explanation

This question requires you to describe the complete process a request undergoes from entering https://google.com in a web browser to displaying the webpage in that same browser. It covers all facets of networking, browser functionality, and server processing, essentially evaluating your knowledge on subjects like DNS lookup, HTTP/S protocols, TLS/SSL, TCP/IP, and the internal workings of a web browser. When responding, be sure to outline the steps clearly, concisely, and logically, demonstrating your comprehension of how these elements interact to present a webpage.

Suggested Answer

When you enter the URL ' https://google.com ', the following process takes place: DNS Lookup: The browser looks for the IP address associated with the domain name 'google.com' in its local cache. If it doesn't find it there, it sends a request to the ISP's DNS server, which then queries the root, TLD, and finally the authoritative DNS servers to resolve the domain to an IP address. TCP Connection: The browser starts a TCP handshake with Google’s server. This involves a 3-way handshake: SYN, SYN-ACK, and ACK to create a reliable connection. TLS Handshake: Given that the site uses HTTPS, a TLS/SSL handshake occurs to establish a secure connection. This process includes the exchange of certificates and the agreement on the encryption methods to be used during the session. HTTP Request and Response: The browser sends an HTTP GET request over the secure connection to retrieve the webpage. Google’s server processes this request and returns an HTTP response packet that includes the status code, headers, and body content (such as HTML, CSS, JavaScript, etc). Rendering Web Page: The browser begins to parse the HTML and build the DOM tree. Simultaneously, CSS and JavaScript are processed into CSSOM and JavaScript Heap, respectively. The browser's rendering engine combines the DOM and CSSOM into a render tree, which displays the webpage and executes scripts as needed.

Alternative Answer

After entering ' https://google.com ' into your web browser and hitting enter: Domain Name System (DNS) Resolution: The browser translates the domain name into an IP address through a procedure called DNS resolution. This process involves navigating through several DNS servers until it reaches the authoritative DNS server for 'google.com'. TCP 3-Way Handshake: The browser establishes a TCP connection with the server at the designated IP address. This involves sending and acknowledging a series of messages, forming the TCP handshake, to confirm that both parties can transmit and receive data effectively. Secure Connection: If the site uses HTTPS, the process of establishing a Secure Socket Layer (SSL) or Transport Layer Security (TLS) connection begins. This includes the exchange of names, public keys, and methods for securely sharing other keys, among other information. HTTP Request/Response Exchange: The browser issues HTTP requests to obtain resources such as HTML, CSS, and JavaScript from the server. The server retrieves these resources and returns them to the browser through HTTP responses. Browser Processing: The browser starts processing the resources it has received. Initially, it parses the HTML to construct the Document Object Model (DOM) tree. Next, it parses the CSS to create the render tree. Finally, after processing the JavaScript, the webpage is rendered on the screen.

Question Details

Difficulty & Category

Medium
system design

Product

For CandidatesFor RecruitersCompaniesBrowse JobsInterview QuestionsDeep ProfileSkill AssessmentOpportunity Matching
Prepin.ai

© 2026 Prepin LLC · Philadelphia, PA · All rights reserved.