QA Interview Hub · Knowledge base · Quizzes · Українська

System Design

How to answer a System Design interview

What exactly is assessed in QA System Design

QA System Design assesses not a tool name but the path from a vague brief to a solution that can be defended. The interviewer collects four signals: questions before drawing, scale in numbers, trade-offs and a measurable result. The round covers designing a test system and understanding the backend, and for a payments product business risks such as a double debit become requirements for the test system.

System design · How to answer

You are asked to design a test framework. Start with a tool or with questions?

The interviewer says: «Design a test framework for a payments product». Within a minute the candidate is naming Playwright, Allure and Docker. The interviewer nods and asks: «For how many teams? And in what time should a run finish?». There is no answer, because the candidate had libraries in mind, not the task. This lesson covers what the round actually assesses and why a tool name is not an answer.

What is really checked. System Design for a Senior QA Automation role has two parts. The first is designing a test system (a framework, a CI pipeline, a data strategy, a testing strategy for microservices). The second is understanding the backend: on a diagram «client, load balancer, services, cache, DB, queue» you must say what can break there and how to check it. Some companies ask only one of the parts, or mix them in one conversation.

Two parts of one round

Part 1

Designing a test system

A framework, a CI pipeline, data, a strategy for microservices. The question: «what will you build and why this way».

Part 2

Understanding the backend

A diagram «client, load balancer, services, cache, DB, queue». The question: «what breaks here and how would you test it».

Figure 1. Both parts are judged the same way: requirements, trade-offs and a way to measure the result.

Why the task is vague on purpose. There is no reference diagram to compare the answer with. The ambiguity is the test: at work a Senior gets the same kind of task («tests are slow», «a new team needs a framework») and builds the wrong thing if nothing is clarified. So the interviewer watches not the final diagram but how the candidate moves from a blurry condition to a decision that can be defended. That explains the four signals collected:

  • Questions before drawing. Who uses the framework, how many tests, what the target is. Without this any decision is random.
  • Scale in numbers. Tests, teams, environments, run time. Numbers turn «fast» into a checkable requirement and let you calculate whether the solution works at all.
  • Trade-offs. Every choice costs something: speed against isolation, infrastructure cost against feedback time. A candidate who sees no price usually has not seen the consequences.
  • A measurable result. Pipeline time, the share of unstable tests, time to feedback on a PR. Without a metric «it got better» can be neither proved nor disproved.

Example: a weak answer and a structured one.

The first minute of an answer

Typical

Starting with tools

«I will take Playwright, Allure, Docker, GitHub Actions». Not known for whom, how many tests or in what time. What and why is not said.

Better

Starting with the problem

«First I clarify: how many tests, the time target, how many teams, which environments. Then I split into layers and name what I pay for each decision».

Figure 2. The same candidate, the same task: the only difference is the order.

Why the left variant is weak rather than merely «less polished»: Playwright or Cypress, Allure or ReportPortal can be swapped without changing the essence of the task. The essence is how many tests must pass in what time, how they avoid interfering on shared data, and who will maintain the code. A tool is chosen after the answers and with an explanation of what it solves. The right variant has not decided anything yet, but it has already shown what the decision will follow.

Fintech as input. For a payments product the business risks become requirements for the test system, not decoration of the answer. Money must not be debited twice, so tests of repeated requests and idempotency belong in the strategy. A balance must not go negative without permission, so data with known starting balances is needed. Every operation is traceable, so the test report must keep operation identifiers. If these links are named naturally, it is a strong signal; if the word «idempotency» is just tacked on at the end, it is noticed.

Limits and alternatives. The format varies: a whiteboard, a conversation, a take-home task with a discussion. A Middle is expected to show less scale and fewer trade-offs; a Senior is also asked about people and maintenance (who owns the core, how new teams are onboarded). The whole conversation need not have one structure: if the interviewer stops and asks to go deep into one layer, a rigid scheme only gets in the way. And if a company has no separate round, the same signals are sought in the question «how would you build automation from scratch».

Common mistakes.

  • Starting with tools: it is a library choice without a problem, and the interviewer does not see your thinking.
  • Not clarifying numbers and not fixing assumptions: every later calculation hangs in the air.
  • Naming a solution without its price: «parallelise everything», although it needs isolated data and costlier infrastructure.
  • Ending with a diagram and no metrics: it is unclear how to learn that the solution works.
  • Drawing in silence for several minutes: the interviewer does not hear the logic and has nowhere to steer from.

Check yourself

A candidate immediately proposes «Playwright + Allure + sharding on GitHub Actions». Which two things are missing to make it a design?

Answer

Requirements and prices. It is not known how many tests, teams and environments there are or what the time target is, so it is unclear whether sharding is needed at all. And no trade-offs are named: what parallelisation costs (data isolation, runner cost) and how success is measured. Without them the tools are just a list.

Why does a System Design interview deliberately give a vague condition, and is there a «correct» diagram?

Answer

Vagueness models real work: a Senior must turn a request into requirements. There is no reference diagram; the process is assessed: clarification, numbers, trade-offs, metrics. Two different architectures can be equally good if each is justified by what follows from the requirements.

In an interview. Junior: I understand System Design for QA as two things: how to build a test system and how to test a distributed system knowing its architecture. I start not with tools but with questions about requirements. Middle/Senior: The task is deliberately vague, so I first fix the scale in numbers (tests, teams, environments, the time target), then split it into layers and name a solution with its price for each: speed against isolation, runner cost against feedback time. I finish with metrics that show the solution works: time to feedback on a PR, the share of unstable tests. For a payments product I add the risks of double debit and audit as requirements for data and reporting.

Answer structure: requirements, layers, solution, trade-offs, metrics

A System Design answer is built from five steps: requirements, layers, solution, trade-offs and metrics. Requirements fix numbers and limits, layers split the task into blocks, the solution meets the requirements, trade-offs name the price of a choice, and metrics show that it works. The scheme is scaffolding, not a script: after trade-offs you can return to requirements, and go deep into a layer if the interviewer leads there.

System design · How to answer

You have 40 minutes and a whiteboard. How not to drown in the details of the first layer?

In a System Design round the bigger danger is not ignorance but chaos: the candidate spends half an hour on the structure of a page object and never reaches data, CI and metrics. The interviewer is left with no signals on most topics. To avoid this you need a five-step reference scheme. It is the same for a test framework and for a backend task, and this lesson explains why each step exists and why the order is what it is.

How it works and why. Five steps: requirements, layers, solution, trade-offs, metrics. The order is not random: each step gives what the next one cannot do without.

Five steps and what each gives

1. Requirementsnumbers and limits for all that follows2. Layersblocks you can discuss one by one3. Solutionwhat exactly and why in each layer4. Trade-offsthe price of the choices: level shows here5. Metricshow to check that it works
Figure 1. Each step uses the output of the previous one. The fourth is highlighted: it is the one most often skipped.

Requirements give the numbers and limits: what the system must do (functional) and how much, how fast, for whom (non-functional: the number of tests, teams, environments, the time target, external dependencies). Without them the «solution» has nothing to be checked against. Layers split a big task into blocks you can discuss one by one: for a framework the tests, business steps, page objects and API clients, fixtures, configuration, reporting; for a backend the client, load balancer, services, stores, queues. Solution for each layer: what exactly you do and which problem from the requirements it closes. Trade-offs appear only here, because a compromise exists once something is chosen: speed against isolation, infrastructure cost against feedback time, realistic data against stability. Metrics close the loop: they turn «I think it works» into «here is the number that shows it».

A time guide for 40-60 minutes: requirements 5-10, layers 5, solutions and trade-offs the main part, metrics 5. It is not a rule: if the interviewer is interested in one layer, they will pull the conversation there. A useful habit: after each block, summarise in two sentences and ask whether to go deeper. That manages the time and shows how you work with a stakeholder.

Example: the task «2000 e2e in 15 minutes». The condition: nightly runs take hours, the team needs feedback on a PR within 15 minutes. Start with requirements and calculate whether the target is reachable at all and what parallelism it needs.

Assumption: 2000 tests, ~20 s each, target 15 min.

Sequentially: 2000 x 20 s = 40,000 s  (~11 h)
Target:       15 x 60 = 900 s
Minimum parallel slots: 40,000 / 900 = ~45
With a margin for browser start, uneven shards,
retries: ~60-65 slots (an estimate, to be measured)

This calculation already does the job of two steps. It gives a requirement (≥ 45 slots, and with a margin about 60) and immediately suggests questions for «solution»: shards or workers, what it costs, whether there is enough data and environments for that many parallel runs. The structure then goes:

  • Layers. Tests and API clients, data fixtures, environment configuration, running in CI, the report.
  • Solution. Tests are independent (their own data through the API), the run is split into shards by execution time rather than by file count; unstable tests go in a separate list.
  • Trade-offs. More slots cut the time but raise the cost and the load on a shared environment; isolated data is slower than shared; a fast PR set is simpler than the full one.
  • Metrics. Time to feedback on a PR (by percentile, not the mean), the share of unstable tests, setup time, escaped defects.

A decision for one layer: data

Typical

A decision without a price

«Data: we create it through the API before each test». Why this way and what it costs is not said.

Better

A decision with a price and a metric

«Each test creates its own data through the API: tests are independent and can run in parallel. The price: extra requests and setup time. I measure the share of time spent on setup».

Figure 2. The difference is not in length: the second answer is tied to the requirements and can be checked.

Limits and alternatives. The scheme is scaffolding, not a script. It is not necessarily linear: after the trade-offs the requirements may change («if this is twice as expensive, is 15 minutes critical?»), and going a step back is normal. For a backend task it is sometimes more useful to draw the request flow first and clarify requirements along the way. For a test framework other approaches are no worse: analysing «what hurts now» (a diagnosis rather than building from scratch) also fits the five steps well. But once you drop a step, nobody will return the signals you skipped.

Common mistakes.

  • Skipping requirements and drawing at once: calculations are not tied to numbers, decisions are random.
  • Staying in one layer (usually the page object or fixtures): the interviewer gets no signals about data, CI and metrics.
  • Naming a solution without its price: it sounds like a list of practices, not a choice.
  • Picking a metric that cannot be measured now: «quality» or «stability» with no definition. Better: the share of tests that fail and pass on a rerun with no code change.
  • Following the scheme mechanically: treating an interviewer who steers elsewhere as someone breaking the order.

Check yourself

For 2000 tests of 20 seconds each the target is 15 minutes. How many parallel slots are needed at minimum, and why are more needed in practice?

Answer

2000 x 20 s = 40,000 s, the target is 900 s, so at least 40,000 / 900, about 45 slots. In practice more, because the browser and environment start, shards are uneven in duration, and unstable tests are retried. So about 60-65 with a margin, but that is an estimate to be measured on a real run.

Why do trade-offs come after the solutions rather than together with the requirements?

Answer

A compromise arises once something is chosen: isolated data at the price of time, more workers at the price of money. While there are no solutions there is no price to discuss. Requirements fix what matters, and the cost of each choice is compared against them.

In an interview. Junior: I answer by a scheme: I clarify requirements, split the system into layers, propose a solution for each, say what we pay for it and finish with success metrics. Middle/Senior: Requirements come with numbers, because they can be calculated: 2000 tests of 20 seconds in 15 minutes is at least about 45 parallel slots. I name trade-offs after each solution: speed against isolation, runner cost against feedback time. I choose metrics that can be measured now: time to feedback on a PR by percentile, the share of tests that fail and pass on a rerun, setup time. I keep the scheme flexible: after the trade-offs I can go back to the requirements, and I go into a particular layer if the interviewer leads there.

Which questions to clarify at the start

At the start you clarify the variables the design depends on: scale, the time target, teams, environments and external dependencies. For a backend task you ask about load, consistency versus availability and delivery guarantees in a queue. Four to six questions are enough, each answer must change the solution, and when there is no answer the assumptions are stated aloud with numbers.

System design · How to answer

You are told «design a framework». Which questions to ask so you do not have to guess?

«Design a framework». A candidate who answers this with no questions has to guess: how many tests, how many people, what the infrastructure has. If the guess is wrong, every later decision is built on sand, and the interviewer sees only that the candidate does not know how to turn a request into a task. That is exactly why the first five minutes matter most. This lesson covers which questions to ask, why there should be few and what to do when there is no answer.

How it works and why. A question is not for politeness but to pin down the variables the design depends on. Each answer must directly change a decision: the number of tests and the time target determine workers and shards, the number of teams decides whether a shared core is needed, the presence of ephemeral environments decides the data and isolation strategy, external dependencies decide what to mock and what to run against a sandbox.

A question changes the design

How many tests and the time target→ the number of workers and shardsHow many teams and repositories→ a shared core or separate packagesWhich environments exist→ where data comes from, run isolationExternal dependencies→ mocks, sandbox, contract testsCI budget→ self-hosted or cloud runners
Figure 1. A good question is always tied to a decision that depends on the answer.

For a test-system task the questions are: how many tests there are now and in a year, which types (unit, API, e2e); the time target (PR feedback in 10-15 minutes or a nightly run); how many teams write tests and whether it is one repository; which environments exist (local, ephemeral per PR, staging); which external dependencies (a payment provider, KYC, bank APIs) and whether they have a sandbox; the CI budget.

For a backend task they differ: the load (RPS, peaks, growth); what matters more, consistency or availability (for an account balance usually consistency: better to refuse than to show a wrong amount); the delivery guarantees of the queue (at-least-once means possible duplicates, so the consumer must be idempotent); whether there are regulator requirements: audit, data retention, PCI DSS. These are not decoration either: the answer about delivery decides which message-replay tests are needed.

Which questions to ask

Typical

Changes nothing

«What is your stack?», «Which browser?», «Are there quality requirements?». The answer does not move the design, and the last one is obvious.

Better

Moves the decision

«How many tests and what is the PR feedback target?», «Are there ephemeral environments?», «Does the payment provider have a sandbox?». Each answer changes a layer.

Figure 2. A stack question is useful if the choice depends on it; but it should be asked with a reason.

Example: what to do when there is no answer. The interviewer often says: «Decide yourself». It is not a trap, it checks whether you can work under uncertainty. The action is simple: say the assumptions aloud, briefly, with numbers, and fix them as support. Below is how it sounds:

I fix the assumptions:
- 2000 e2e, ~20 s each
- target: PR feedback in 15 min
- 4 teams, one monorepo
- staging exists, no ephemeral environments
- the payment provider has a sandbox
If something is off, tell me and I will recalculate.

Why this variant is good: the numbers are picked so they are easy to calculate (2000 tests of 20 seconds in 15 minutes gives about 45 parallel slots), the assumptions cover scale, teams, environments and dependencies, and the last sentence leaves the interviewer room to correct. After that you refer to these numbers instead of inventing new ones on the way: the calculations stay consistent from start to end.

Limits and alternatives. Do not ask all the questions at once: pick the 4-6 most important, write the answers down (on the board or in your head) and refer to them. A long interrogation tires and eats time, but too few questions looks like guessing. The interviewer may answer partly or answer with a question: that is a sign the number is not critical, not a reason to get stuck. A «which stack» question is fine if it has a reason («Playwright is already there, or are we choosing?»); without a reason it shows only a habit.

Common mistakes.

  • Asking no questions: decisions become guessing, and the interviewer does not see how you work under uncertainty.
  • Asking a dozen questions in a row: time goes, and you have not shown you can prioritise.
  • Asking what changes nothing: «which browser?» with no reason, when the point is scale.
  • Hearing the answer and not using it: nothing changed in the design, as if the questions were a ritual.
  • Silently inventing numbers: the interviewer does not know your assumptions and cannot correct them.

Check yourself

The interviewer answered «decide yourself» to your question about the number of tests. What do you do and why not just start designing?

Answer

I say an assumption aloud with numbers (for example 2000 tests of 20 seconds, a 15-minute target) and fix it as support. If assumed silently, the interviewer cannot see what the calculations rest on and cannot correct it, which could shift the whole design. Said aloud, the assumption can be checked.

Which decision does the answer «the queue guarantees at-least-once» change, and why?

Answer

At-least-once means a message may arrive twice. The consumer must be idempotent (a repeated processing must not debit twice), and the tests need a redelivery scenario. Without it the system may duplicate operations, and a test with a single delivery will not show this.

In an interview. Junior: I start with questions about scale, the time target, environments and external dependencies. If there are no numbers, I fix the assumptions aloud myself so the calculations are transparent. Middle/Senior: I take 4-6 questions, each of which changes a decision: test numbers and the target decide workers and shards, teams decide the core, environments decide data and isolation, dependencies decide mocks and sandboxes. For a backend I ask about consistency against availability and delivery guarantees, because at-least-once means duplicates and needs an idempotent consumer. When there is no answer, I name the assumptions with numbers and ask to be corrected if something is off.