Advice > Software engineering

Google system design interview guide (questions, process, prep)

By Julia Hamilton on November 14, 2022 How we wrote this article
Hand holding phone displaying Google Maps route

Today we’re going to go over the Google system design interview, with 45 confirmed Google system design interview questions, plus sample answers to the top 3 most common.

The information in this guide comes in part from an analysis of nearly 100 real system design interview reports collected from Google software engineer, engineering manager, and technical program manager candidates. 

The first thing you’ll need to know: Google interviewers expect you to be VERY familiar with the company’s products ahead of time.

Let’s get started.

  1. Google system design interview basics
  2. Google system design interview questions
  3. Preparing for Google system design interviews
Click here to practice system design interviews 1-on-1 with a Google ex-interviewer

Google system design interview basics

Google system design interviews are typically given to software engineer and TPM candidates at levels L5 and up. Each system design interview lasts 45 minutes and is focused on one complex problem like “design YouTube.” Google typically gives 1-3 system design interviews, depending on the level of the candidate.

Google has a reputation for having some of the highest standards when it comes to technical capabilities, which makes their coding and system design rounds especially tricky. 

Some candidates have even reported receiving a system design question that proved to be intentionally unsolvable—however, it should be noted that this is rarely the case.

Many Google interviewers also prefer that candidates refrain from using specific products (e.g. certain databases, load balancers, etc.), instead requiring candidates to build from scratch. This is because interviewers want to be sure that candidates know how these components work, rather than resorting to a product that takes care of certain aspects like sharding (even if it’s what you may ultimately use when you’re on the job). 

Be sure that you’re up to date on the latest Google products and releases, as well as their legacy products, as you’ll most likely be asked system design questions that relate to them. Here are some resources that can help:

Finally, your interviews may take place virtually, meaning you’ll have to map out your design in Google Docs or using Google Draw. Test these tools beforehand so that you’re not taken off guard in the interview setting.

Google system design interview questions

Now that you’ve got an idea of how system design interviews work at Google, let’s get into the complete list of system design questions that have been asked in real Google interviews, according to data from Glassdoor.

Out of all the Google system design interview questions that we collected from Glassdoor, these first three questions were repeated multiple times across different roles. Since Google clearly favors these questions, we’re putting a spotlight on them, with suggestions and sample answers for each. 

Below each question, you’ll find a repeatable framework that you can use to answer any system design interview question. For a full explanation of the framework, consult our system design question guide

1. Design Google Maps

One of the most common Google system design interview questions, “design Google Maps” requires candidates to tackle an incredibly complex task—building a complete navigation system — in 60 minutes or less.

Below, take a look at some points of consideration and questions to keep in mind when working through this system.

Sample answer: Design Google Maps

Ask clarifying questions

  • What are the functional and non-functional requirements? (e.g. route planning, time and distance estimations, identifying roads, availability, accuracy, etc.)
  • How many monthly average users are there? How frequently do they access the app?

Design high-level

  • How will your system designate the fastest route from point A to point B? (Dijkstra’s algorithm, Bellman Ford Algorithm, Floyd-Warshall Algorithm, etc.) 
  • How will you store the above information?
  • How will you optimize the system to only take into account relevant roads instead of all roads in the world or country?

Drill down on your design

  • How will you map out the architecture, and what components will you use to handle requests? Which components will you build yourself versus using specific tech (Cassandra, Hadoop, WebSocket managers, etc).
  • Can you dive deeper on a specific aspect? (traffic predictions, estimated time of arrival, etc.)

Bring it all together

  • How can you improve what you’ve built? Are there bottlenecks you could resolve or aspects you could optimize?

For the full breakdown of an answer to this question, take a look at the video below from codeKarle.

 

2. Design autocomplete for a search engine

This question came up most frequently in software engineer and engineering manager interviews. Take a look at the framework below for an approach to this question, followed by the video version of a full sample answer.

Sample answer: Design autocomplete for a search engine

Ask clarifying questions

  • What are the key features? (fast response time, high relevance, number of results, etc.)
  • What are the functional and non-functional requirements?

Design high-level

  • What data structure will you use to find suffixes and word completion, and how will you sort the solutions?
  • How will you store this data structure and connect it with the rest of the system? (Redis cache, database, hash table, API server, load balancer, etc)

Drill down on your design

  • How would you modify the frequency of the system without compromising availability or increasing latency?
  • Consider the fault tolerance of the system - How would you store the already built trie data structure so that in case of failure the system can be restored?

Bring it all together

  • Is there any more optimization that you could do? Does the system meet the requirements laid out in the beginning of the interview?

3. Design a web cache

A distributed web cache is key to many systems, so that the RAM of multiple machines can be accessed in a single in-memory store quickly and reliably. Let’s look at some general points that should help you build out a design.

Sample answer: Design a web cache

Ask clarifying questions

  • Consider the functional and non-functional requirements: put (storing objects under a unique key), get (retrieving objects), scalability, availability, performance, etc.
  • Specify your assumptions: can we assume that put and get are strings?

Design high-level

  • Possible data structures for storing data: hash table, queues, doubly linked list
  • Consider different options to distribute the cache, as well as the benefits of each (e.g. dedicated cache clusters vs co-located caches) 

Drill down on your design

  • Identify the tradeoffs of your choices: Maximum hash table size will prevent from adding more elements, shards may become “hot” (aka process more requests than others), etc.
  • Data replication could help with “hot” shard bottleneck

Bring it all together

  • Is the system you’ve designed fast, highly scalable, and available?

For a full answer to this question, take a look at the video guide below from System Design Interview.

 

More Google system design interview questions

Now, let’s get into the complete list of system design interview questions asked in interviews for different roles at Google.

Keep in mind that, in most cases, your interviewer will adapt the question to your background. For instance, if you've worked on an API product they're more likely to ask you to design an API. But that won't always be the case, so practice with the questions below to be ready to design any type of product or system at a high level.

We’ve divided the questions by role: software engineer, engineering manager, and technical program manager. 

Note that for each role, interviewers ask similar questions to test different skills. For example, engineering managers will be expected to give more in-depth answers than software engineers, including a discussion of how the system would play into the larger business context of the company. TPMs must be able to discuss the merits of different architectures in order to work with engineers.

Test out your skills using the questions below.

Google system design interview questions (for software engineers)

  1. Design a word predictor for a search engine.
  2. Design an implementation for a system like Git.
  3. Design a shuffle system for a music player with k iteration of cooldown, given a list of songs.
  4. Design a T-shirt machine.
  5. Design the front page for a news source that aggregates sources across newspapers.
  6. Design an API for an elevator.
  7. Design a system for a robot to learn the optimal layout of a room and traverse it completely.
  8. Design a large system for virtual machines addresses in physical machines.
  9. Design a tile-matching game (similar to Candy Crush). It shouldn’t have any matching 3 symbols on a fresh board, and there should be at least one possible move.
  10.  How would you distribute YouTube servers?
  11.  Design Google Drive.
  12.  Design a recipe finder that generates recipes when given raw ingredients.
  13.  Design a service that provides services to applications using an edge network.
  14.  Design a ticketing platform.
  15.  Design a video game.
  16.  Design an online booking system for a restaurant.
  17.  Create a cache where values get invalidated based on a TTL (time to live).
  18.  Implement a swipe to text keyboard.
  19.  Design a search engine.
  20.  Design Twitter.
  21.  Design a data center on the moon.
  22.  Design a house-cleaning robot.
  23.  Design Google Calendar.
  24.  Design a social network.
  25.  Design a system that protects data exchanged between end-station and the server. Provide solutions for data privacy, authentication, data collection, etc.
  26.  Design a task-scheduling system.
  27.  Design an elevator.

Google system design interview questions (for engineering managers)

  1. Design a system to view the latest stock prices from around the world.
  2. Design a photo sharing website, on which users can upload, edit, and download photos, browse web and mobile UI with thumbnails of users’ photos.
  3. Design a system that displays advertisements next to search results, based on keywords.
  4. Design a scoring system for Google services.
  5. Design a ticket booking system.
  6. Design a database.
  7. Design an in-memory cache for web pages.
  8. Design a boggle solver.
  9. Design a distributed id generation system.

Google system design interview questions (for technical program managers)

  1. Design Google Maps.
  2. Design Street View.
  3. Design YouTube.
  4. Design a key pair system which can handle 3,000 keys per second.
  5. How will you move 100 petabytes of data from the East Coast to the West Coast?
  6. How will you build a global system to upgrade software on a fleet of machines?
  7. Design a web cache.
  8. How would you deploy a solution for cloud computing to build in redundancy for the compute cluster?
  9. Design the server infrastructure for Gmail.

Preparing for Google system design interviews

Now that you know what questions to expect, let’s focus on preparation. Below, you’ll find links to free resources and four steps to help you prepare for your Google system design interviews.

For extra tips and resources, take a look at our system design interview prep guide and our list of 19 system design interview tips from ex-interviewers.

1. Learn the interview process

Of course, your system design interviews at Google will be part of a larger interview process. For help understanding the overall interview process and practice questions for every type of question you’ll be asked, use one of the guides below.

Now, let’s dig deeper into system design interview prep.

2. Learn the concepts

There is a base level of knowledge required to be able to speak intelligently about system design. You don't need to know EVERYTHING about sharding, load balancing, queues, etc. 

However, you will need to understand the high-level function of typical system components. You'll also want to know how these components relate to each other, and any relevant industry standards or major tradeoffs. 

To help you get the foundational knowledge you need, we've put together a series of 9 system design concept guides. Here's the full list:

  1. Network protocols and proxies, which make it possible for any networked computers to talk to each other, no matter where they are or what hardware or software they’re running.
  2. Databases, integral components of the world’s biggest technology systems.
  3. Latency, throughput, and availability, three common metrics for measuring system performance.
  4. Load balancing, the process of distributing tasks over a set of computing nodes to improve the performance and reliability of the system.
  5. Leader election algorithms, which describe how a cluster of nodes without a leader can communicate with each other to choose exactly one of themselves to become the leader. 
  6. Caching, a technique that stores copies of frequently used application data in a layer of smaller, faster memory in order to compute costs and to improve data retrieval times and throughput.
  7. Sharding, the horizontal scaling of a database system that is accomplished by breaking the database up into smaller “shards,” which are separate database servers that all contain a subset of the overall dataset.
  8. Polling, SSE, and WebSockets, techniques for streaming high volumes of data to or from a server.
  9. Queues and pub-sub, mechanisms that allow a system to process messages asynchronously, which can eliminate bottlenecks and help the system to operate more efficiently.

We’d encourage you to begin by studying these topics, and once you understand the basics, you can begin practicing system design questions.

3. Work through system design interview questions

We recommend using a repeatable answer framework when answering system design interview questions. You can learn more about that framework here, but in the meantime, here is a summary:

Step 1: Ask clarifying questions

First, spend about five minutes checking in with your interviewer about the functional and non-functional requirements of what you’re going to design. Ask about the system’s goals and how they will be measured. Be sure that you fully understand the question before moving forward.

Call out any assumptions you’re making that will influence your design approach. If applicable, ask about non-functional requirements such as availability, consistency, scalability, etc.

Step 2: Design high-level

Start the high-level design by specifying one to two metrics (e.g. number of users added, products sold before vs after a feature launch, etc.). Then use these metrics to do some simple calculations in order to find the optimal usage pool of the system.

Once you’ve defined your metrics, map out only the most functional components of the system (e.g. front end, web server, database, etc.).

Finally, before getting into the more detailed aspects of your system, make some decisions on how you will design its database. Choose whether it will be a relational or a no-SQL database, as well as its metadata and table structure.

Step 3: Drill down on your design

If you haven’t already, start mapping out the system on your whiteboard. Speak through your diagram so that your interviewer is able to follow along and ask questions when necessary.

Consider any bottlenecks that may arise when it comes to the system’s scalability, performance, or flexibility.

To finalize your design, play to your strengths by choosing a component you’re more familiar with and drilling down on it. If you’re not sure which component would be best to explore, ask your interviewer.

Step 4: Bring it all together

Before wrapping up the round, take about five minutes to re-examine what you’ve designed. Does it meet the objectives you laid out with the interviewer at the beginning of the session? It is okay to change some components at this stage if you think it will improve the system, but you must explain to the interviewer what you are doing and why.

Apply this framework to practice questions like those we’ve provided above. Use it on different types of questions in a variety of subjects, so that you learn how to adapt it to different situations and respond to unpredictable questions on the fly.

In this article we're focusing on system design, but of course you'll need to prepare for other types of questions too.

Click here for our comprehensive guide to Google interview questions, including lots of questions and example answers for SWEs, TPMs and EMs.

4. Practice with peers

Once you've done some individual practice, we would also strongly recommend that you practice solving system design questions with someone else interviewing you. If you have friends or peers who can do mock interviews with you, that's an option worth trying. It’s free, but be warned, you may come up against the following problems:

  • It’s hard to know if the feedback you get is accurate
  • They’re unlikely to have insider knowledge of interviews at your target company
  • On peer platforms, people often waste your time by not showing up

For those reasons, many candidates skip peer mock interviews and go straight to mock interviews with an expert. 

5. Practice with experienced system design interviewers

In our experience, practicing real interviews with experts who can give you company-specific feedback makes a huge difference.

Find a Google system design interview coach so you can:

  • Test yourself under real interview conditions
  • Get accurate feedback from a real expert
  • Build your confidence
  • Get company-specific insights
  • Save time by focusing your preparation

Landing a job at a big tech company often results in a $50,000 per year or more increase in total compensation. In our experience, three or four coaching sessions worth ~$500 make a significant difference in your ability to land the job. That’s an ROI of 100x!

Click here to book system design mock interviews with experienced system design interviewers from Google.
 

Related articles:

50+ maps interview questions and cheat sheet
Software engineeringSep 30, 2021
50+ map interview questions and cheat sheet
50+ map interview questions, all with links to high-quality solutions, plus a map refresher and cheat sheet. Part 7 of our coding prep series to help you ace your software engineer interview.
Read more
polling, streaming and sockets system design interview
Software engineeringFeb 10, 2021
Polling, server sent events, and WebSockets: system design interview concepts (8 of 9)
This guide defines polling, server sent events, and WebSockets, how they work, and when you should use them in a system design interview.
Read more
Tech resume examples
Software engineeringJul 24, 2024
Tech Resume Guide (+11 FAANG examples that worked)
11 real tech resume examples that got interviews at FAANG companies including Google and Meta. Plus, step-by-step guide to writing a technical resume, a free tech resume template, and pro tips.
Read more
Greedy algorithm interview questions
Software engineeringNov 29, 2021
50 greedy algorithm interview questions
50 greedy algorithm interview questions, all with links to high-quality solutions, plus an interview preparation guide. Part 6 of our algorithms questions series to help you practice for your software engineer interview.
Read more
a female FAANG candidate smiles next to a whiteboard
Software engineeringNov 15, 2023
FAANG interview questions (SWE, PM, etc) + answers
Comprehensive list of FAANG interview questions for software engineers, product managers, engineering managers, etc. With links to high-quality answers, frameworks and explanations.
Read more
Facebook production engineer interview
Software engineeringJul 20, 2022
Meta production engineer interview (questions, prep, and process)
Complete guide to Meta (formerly Facebook) production engineer interviews. Learn the interview process, practice with example questions, and learn key preparation tips.
Read more
meta company logos
Software engineeringSep 26, 2024
How to crack the Meta Product Architecture interview
Prepare to ace your Meta product architecture interview with this comprehensive guide. Learn more about the interview and how Meta conducts them, a framework to organize your answers, plus resources to help you prepare.
Read more
Googler displaying Googleyness by drinking a coffee
Software engineeringAug 17, 2023
Googleyness & Leadership Interview Questions (+ how to impress)
Learn what Googleyness actually is, what kind of questions to expect and how to demonstrate Googleyness and leadership throughout your interviews.
Read more