Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 34

Eliciting Requirements Through Clarifying Questions

This lesson is built with resources from youtube.com, interviewing.io and 1 more site.

Hello! Welcome back to our system design module.

In our last lesson, we established a high-level, 4-step framework for structuring a 45-minute system design interview. This framework—Requirements, High-Level Design, Deep Dive, and Wrap-up—is our map for navigating any design problem.

Today, we're zooming in on the first and most critical step. Our learning outcome is to gather functional and non-functional requirements through clarifying questions. Mastering this initial phase is paramount for a Staff-level role. It's where you shift the dynamic from being a candidate answering a question to a technical leader defining a problem.

1. The Most Common Mistake

Before we learn the right way to start, let's see what not to do. Many candidates, in an effort to show technical knowledge, immediately jump into discussing technologies and components. This is a significant red flag for interviewers.

System Design Interview – BIGGEST Mistakes to Avoid

This short clip from ByteByteGo's 'System Design Interview – BIGGEST Mistakes to Avoid' perfectly illustrates the pitfall of designing without first understanding the problem.

Watch from 01:14 to 01:52. Notice how the candidate starts listing technologies (load balancer, Redis) before even knowing what kind of URL shortener is needed. This is what we want to avoid.

Your experience designing large systems has taught you that the most costly errors happen at the requirements stage. The interview is no different. Your first goal is to transform an ambiguous prompt (e.g., "Design Twitter") into a concrete set of specifications that you and the interviewer agree upon.


2. A Systematic Approach to Requirements

The requirements gathering phase isn't just a checklist; it's a structured conversation. We break it down into two categories: Functional and Non-Functional requirements.

To see how an expert structures this, let's look at the System Design Delivery Framework from Hello Interview.

System Design Delivery Framework

This article provides a clear, concise definition of functional and non-functional requirements. It will serve as our foundation for this lesson.

Please read the sections 'Requirements' and '1) Functional Requirements'. Focus on the definition of functional requirements as 'Users/Clients should be able to...' statements and the importance of prioritizing the top 3 core features.

Now, let's dive into the specifics of gathering each type.


3. Gathering Functional Requirements: Defining the "What"

Functional requirements define the core features of the system. Your goal here is to ask clarifying questions to establish a prioritized list of features that can be reasonably designed in about 30-40 minutes.

A highly effective method for systematically exploring functional requirements is detailed in the A 3-Step Framework to Nail Your System Design Interview guide from interviewing.io.

A 3-Step Framework to Nail Your System Design Interview

This resource provides a powerful, structured method for uncovering functional requirements. It moves beyond just listing features and helps you think about the system's data and interactions.

Please read section 'Step 1: Requirements', focusing on subsection '1.1 Functional Requirements'. Pay close attention to the three-part strategy: Identify the main business objects and their relations (e.g., Account, Tweet). Think about the possible access patterns (e.g., 'Given an account, get all of its followers'). Consider mutability (e.g., 'Can tweets be edited?'). \nAlso, review the 'Example of Functional Requirement gathering' for 'Design TikTok' to see this method in a hypothetical dialogue.

To summarize this excellent strategy, your line of questioning should follow this pattern:

  1. Identify Core Objects: "What are the main entities in this system? For a system like Instagram, it seems we have Users, Posts, and Comments. Is that correct?"
  2. Define Actions & Relationships: "What can a User do? They can create a Post, follow another User, and 'like' a Post. Are there other key actions?"
  3. Clarify Access Patterns: "What information do we need to retrieve? It seems we'll need to get a User's profile, fetch all Posts for a User, and generate a feed of Posts from followed Users. Is feed generation a priority?"
  4. Prioritize and De-scope: "This is a large system. For today's discussion, I propose we focus on posting and viewing a user's own posts, and generating the main feed. We can consider features like Stories, Reels, and messaging as out of scope. Does that sound reasonable?"

Let's watch a Staff-level candidate apply this in a mock interview.

OpenAI & Meta Senior/Staff System Design Mock Interview: Design Online Auction

In this mock interview for designing an online auction system, watch how the candidate methodically clarifies the core functions and scope.

Watch from 01:48 to 03:45. Observe how the candidate: Lists the core actions: create an auction, submit bids, determine/notify the winner. Asks a clarifying question to narrow the scope: 'is an auction post just going to sell one item?'. Proactively de-scopes a related but complex feature: 'do we need to worry about having the auction appear on people's Instagram feeds?'


4. Gathering Non-Functional Requirements: Defining the "How Well"

Once you've established what you're building, you must define the constraints and qualities the system must possess. These are the non-functional requirements (NFRs), and they are what truly drive architectural trade-offs. For a Staff-level candidate, this is where you begin to demonstrate your seniority.

A generic statement like "the system should be scalable" is meaningless. You must quantify it.

System Design Delivery Framework

Let's return to the 'System Design Delivery Framework' to explore its excellent checklist for NFRs.

Read section '2) Non-functional Requirements'. Focus on the principle that NFRs should be quantified where possible. Study the checklist of 8 items, from CAP Theorem to Compliance. You don't need to ask about all eight in every interview, but you should have them in your mental toolbox.

This map gives a visual sense of how broad the category of NFRs can be.

Non-functional Requirements Map
This map illustrates how high-level qualities like 'Reliability' or 'Efficiency' break down into specific design criteria like 'Error tolerance' and 'I/O volume'. Your questions should aim to uncover these specific criteria.

Here are the key NFRs you should almost always discuss:

  • Scalability & Performance:

    • "What kind of scale are we anticipating? 10 million daily active users? 1 billion?"
    • "What's the expected read-to-write ratio? For a news feed, I assume it's heavily read-dominated, maybe 100:1 or even 1000:1 reads to writes. Is that a fair assumption?"
    • "Are there specific latency targets? For example, should the feed load in under 200ms?"
  • Availability vs. Consistency:

    • This is a crucial Staff-level question. "What's more important for this feature? If a user posts a comment, is it okay if it takes a few seconds to appear for their friends (favoring high availability), or must it be instantly visible to everyone, even if it means a slight delay or risk of failure (favoring strong consistency)?"
  • Durability:

    • "How critical is the data? If we are designing a payment system, we cannot lose a single transaction. For a 'like' on a photo, a lost 'like' might be acceptable in a catastrophic failure. What is the tolerance for data loss?"

Now, let's see this in action. The dialogue in the mock interview is a perfect example of how functional requirements can expose non-functional ones.

OpenAI & Meta Senior/Staff System Design Mock Interview: Design Online Auction

Continuing with the auction mock interview, watch how the conversation pivots from functional features to the critical non-functional qualities that will shape the design.

Watch from 04:09 to 10:05. This is a masterclass in NFR discussion. Pay attention to: (04:44) The candidate identifies the need for strong consistency for submitting bids to avoid race conditions. (05:49) The candidate asks for scale numbers ('how many auctions?'), prompting the interviewer to provide key details. (06:42) The interviewer introduces a new functional requirement ('view bids in real-time'), which the candidate immediately translates into a non-functional requirement: low latency bid updates with a specific target (< 500ms). (09:50) The candidate briefly touches on other NFRs like security and fault tolerance, showing comprehensive thinking.

Finally, a note on tone and depth. You are an expert guiding a client (the interviewer) through their needs. Avoid making NFRs feel like a list of buzzwords.

A 3-Step Framework to Nail Your System Design Interview

This last reading offers some wise advice for senior candidates on how to discuss NFRs without sounding like you're just reciting a list.

Please read subsection '1.2 Non-Functional Requirements'. The 'Rule of thumb' and the 'Anecdote from an interviewer' about discussing the 'number of nines' of availability are particularly relevant for a Staff-level discussion. The key is to frame NFRs as opportunities for trade-offs.


Conclusion

The requirements gathering phase sets the trajectory for your entire interview. By spending the first 5-10 minutes in a structured, curious dialogue with your interviewer, you demonstrate product sense, strategic thinking, and technical leadership. You aren't just answering a question; you are framing the problem to be solved.

Key Takeaways:

  • Don't Jump to Solutions: Start by understanding the problem, not by listing technologies.
  • Separate Functional and Non-Functional: Systematically discuss what the system should do (functional) and how well it should do it (non-functional).
  • Be Systematic with Functional Requirements: Use a framework like Objects -> Actions -> Access Patterns to uncover the core features and then explicitly state your prioritized scope.
  • Quantify Non-Functional Requirements: Go beyond buzzwords. Ask about user numbers, QPS, read/write ratios, latency targets, and the relative importance of availability versus consistency.
  • Lead the Conversation: You are the architect. Guide the interviewer through the requirements as if they were your product manager. End this phase by summarizing the agreed-upon scope: "Okay, so to summarize, we're building X, Y, and Z for N users, prioritizing low latency for feature A. Does that sound right?"

Preview of the Next Lesson:
We've identified the key NFRs, like scale and performance. The next logical step is to quantify them. In our next lesson, we will focus on how to "Perform back-of-the-envelope estimations for throughput, storage, and bandwidth." This will give us concrete numbers to drive our technology choices in the high-level design.