Requirements and Scope for Frontend Design

Topics Covered

Functional and Non Functional Requirements for a Client

What a functional requirement looks like on the client

Core features and explicit exclusions

Non functional requirements are client qualities

Writing requirements you can test

A worked requirements list

What the interviewer is checking

Requirements for the states in between

When requirements conflict

The first step of the framework turns a one line prompt into a written list you can design against. In a backend round, that list is about throughput, storage and consistency. In a frontend round, the same two categories exist, but they are filled with different things. Getting the categories right, and getting each line specific enough to test, is the foundation the rest of the interview stands on.

This lesson goes deeper than the overview in the first lesson. It covers what a client requirement looks like, how devices, networks and users change the design, which cross cutting requirements to raise, how to turn performance into a budget, and how to sketch the main screen and close scoping with a short bank of questions.

What a functional requirement looks like on the client

A functional requirement says what a user can do. For a client, the useful level of detail is the interaction, not the feature name. Users can see a feed is too vague to design against. Users can scroll an endless feed of posts with text and up to four images, see new posts appear at the top without the list jumping, like a post with one tap and see the count update immediately, and open a post's comments in a panel without leaving the feed, is something you can draw.

Phrase each functional requirement as a user action and a visible result. The action tells you which component handles the event. The visible result tells you what state must change and how quickly. Like a post and see the count update immediately already implies an optimistic update, because no network is fast enough to make a round trip feel immediate.

Core features and explicit exclusions

You cannot design everything in forty minutes, so choose three to five core features and say out loud which ones you are leaving out. For a news feed, a good core set is view the feed, like, comment and create a post. Good exclusions are direct messages, notifications, ads, stories and account settings. Saying the exclusions matters as much as choosing the core, because it stops the interviewer from wondering whether you forgot them and gives you permission to draw them later as single boxes.

Every prompt splits into what users can do and how the client must behave.

Choose the core features by asking which ones carry the hardest client problems. Create a post with images is interesting because it involves file handling, previews, upload progress and failure recovery. Account settings is a form with a save button and rarely earns much signal. If the interviewer wants a specific feature included, they will say so, and you add it to the list.

Non functional requirements are client qualities

Non functional requirements describe how the client must behave, not what it does. On the client they fall into a familiar set of groups.

  • Performance: how fast the first useful screen appears, how quickly interactions respond and how smoothly the page scrolls.
  • Reliability on bad networks: what happens on slow, flaky or absent connections.
  • Accessibility: keyboard use, screen readers, zoom and contrast.
  • Internationalisation: languages, text direction and local formats.
  • Search visibility: whether public pages must be indexed and shared with rich previews.
  • Security and privacy: how user content is rendered, where tokens live and what third party code runs on the page.
  • Device and browser support: which devices, which browsers and which screen sizes.

You will rarely need all of them at full depth. The skill is to ask about each group quickly, keep the ones that matter for this product and drop the rest with a sentence.

Writing requirements you can test

A non functional requirement is only useful if you could check it. The app should be fast cannot be checked. The feed's first screen of posts should be visible within about two and a half seconds on a mid range phone on a typical 4G connection, measured at the 75th percentile of real users, can be checked. Smooth scrolling cannot be checked; scrolling the feed should not produce frames longer than about fifty milliseconds on the reference phone can.

Testable wording has three parts: a measurable quantity, a condition such as the device and network, and a threshold. You do not need precise numbers in the interview, and you should not pretend to precision you do not have. Reasonable round numbers with a stated condition are what the interviewer listens for, because they show you understand that performance is measured under specific conditions rather than in general.

A worked requirements list

Here is how a short list for a news feed might look on the whiteboard after five minutes. It is deliberately compact.

text
1Core:     view feed (text + up to 4 images), like, comment panel, create post
2Out:      DMs, notifications, ads, stories, settings
3Users:    mostly mobile web, many mid and low end Android phones
4Perf:     first posts visible ~2.5 s on mid phone over 4G (p75)
5          taps respond under ~200 ms; no layout jumps when images load
6Network:  flaky mobile; show cached feed offline, queue likes
7A11y:     full keyboard use, screen reader friendly feed and composer
8SEO:      individual post pages public and indexed; feed is logged in

Each line will be used later. The mobile and low end phone line drives the bundle budget and virtualization. The offline line drives the cache and the like queue. The SEO line drives a split rendering strategy: public post pages rendered on the server, the logged in feed allowed to render on the client. Rendering strategies are covered in their own lesson; here, the point is that the requirement is written down so that choice has a reason.

What the interviewer is checking

The interviewer is not checking whether your list matches theirs. They are checking whether you asked about the things that change a client design, whether you made reasonable assumptions when they declined to answer and whether your later choices refer back to the list. If the interviewer says assume whatever you like, choose sensible defaults out loud and write them down, such as I will assume most users are on mobile and that public post pages must be indexed. An assumption you state is as good as an answer; an assumption you make silently is a hidden risk in the design.

A final habit is to number the lines. When you later say we need server rendering for post pages because of line seven, you make the connection between requirement and decision impossible to miss, and that connection is precisely the evidence the scoping signal rewards.

Requirements for the states in between

Functional requirements usually describe the happy path, but users spend real time in other states. Before closing the list, add a line for what each core feature shows while loading, when there is nothing to show, when something fails and while an action is pending. For a feed, that might be: skeleton rows while the first page loads, a friendly empty state for new users who follow nobody, an inline retry when a page fails to load and a pending style on a post that is still uploading.

These lines look small, but they change the design. A skeleton needs reserved space and known row heights, which also helps layout stability. A pending post needs a client side identifier before the server has assigned one. An inline retry needs the data layer to remember which page failed. Writing the states into the requirements means the architecture will have a place for each of them, rather than leaving them for an awkward question later.

When requirements conflict

Sometimes two requirements pull against each other, and it is better to notice during scoping than in the middle of a deep dive. Rich, personalised content on the first screen conflicts with a tight loading budget. Showing a live count of new posts conflicts with not moving the list under the user's thumb. A strict content security policy conflicts with a marketing team that wants to add third party tags freely.

When you see a conflict, name it and propose a priority: the loading budget wins on the first screen, so personalised modules load after the main feed. The interviewer may agree or choose differently, and either way you have turned a hidden tension into a stated decision. That is more valuable than resolving it silently, because the interviewer can only credit trade-offs they hear.

Interaction plus visible result

Write each functional requirement as a user action and what the user sees next, such as tap like and the count changes at once. The action names the component and the result names the state, so the requirement already sketches part of the design.