Skip to content
Preptima

QA & Testing interview questions and answers

The full QA spectrum kept deliberately separate: manual craft, automation engineering, and performance testing are different interviews with different rubrics.

36 published across 13 topics.

The test pyramid, black versus white box, severity versus priority, and the STLC vocabulary asked verbatim.

All 3 in Testing Fundamentals

Manual & Functional Testing

2 questions

Test case design, equivalence partitioning and boundary values, exploratory charters, and defect reporting.

Risk-based scoping, entry and exit criteria, estimation, traceability, and release sign-off judgement.

mediumConceptScenario

How do you decide what to automate and what to leave manual?

Automate what runs often, has a deterministic oracle, sits on a stable interface, and guards an expensive escaped bug. Push each check to the cheapest layer that can still fail meaningfully, treat flakiness as a defect rather than noise, and keep human time for exploratory testing, not scripted regression.

6 minmid, senior, lead
mediumConceptDesign

What is the test pyramid, and is it still the right model for your system?

Buy most of your confidence from fast isolated tests and little from slow end-to-end ones, because cost and flakiness rise as you climb. It is a claim about where risk lives, so a system whose risk sits in integration - a thin service over a database - correctly has a different shape.

4 minmid, senior, lead
All 3 in Test Strategy & Planning

What to automate and what not to, page objects, locator strategy, waits, and flakiness root causes.

mediumConcept

A test fails in CI and all you get is 'expected true, got false'. What should the framework have given you instead?

A failure has to be diagnosable from its artefacts alone, because nobody can attach a debugger to a CI run: that means assertions that report the compared values, a message naming the business expectation, and captured evidence of the state at the moment of failure. Use this automation answer to show the decision, trade-off, and evidence rather than a memorised definition.

4 minentry, mid, senior
easyConceptCoding

What belongs in a page object, and what should never go in one?

A page object owns locators and the mechanics of interacting with a screen, and nothing else. Assertions, test data and workflow belong in the test, because the moment a page object asserts, the test's intent stops being readable from the test.

5 minentry, mid
All 3 in Automation Fundamentals

Selenium & WebDriver

2 questions

Driver architecture, synchronisation, framework design, grid and parallel execution, and reporting.

Auto-waiting, fixtures and isolation, network interception, tracing, and migration considerations.

mediumScenarioCodingConcept

A Playwright test clicks a button that is visibly on screen, and roughly one run in twenty nothing happens. The button is server-rendered but the app hydrates after load. Why does the click get lost, and how do you fix the flake properly?

Playwright actionability checks pass on server-rendered markup because the element is attached, visible, stable and enabled - none of which imply React has attached its listener. The click lands on inert HTML, so this is a race with hydration, not a timing problem. Wait on a readiness signal the app exposes deliberately.

4 minmid, senior, staff
All 3 in Playwright & Cypress

API Testing

4 questions

Contract and schema validation, auth handling, data setup and teardown, and REST Assured or Postman workflows.

hardConceptScenarioDesign

Your consumer-driven contract test passes in CI, but production rejects a request because a supposedly optional field is missing. What did the contract testing actually miss?

The contract captured the shape the consumer sends, not the rules the provider enforces. Optionality lived in the schema while the real requirement lived in provider validation, and no recorded example ever omitted the field. Contract tests only verify interactions they contain, so add the negative example and verify against real code.

4 minmid, senior, staff
mediumConceptDesignScenario

Two teams own two services that talk to each other. How do you stop one breaking the other without running both together in a shared environment?

Contract testing has each side verify itself against a shared description of the interaction, so consumer expectations are checked against the provider's real behaviour without the two ever running together. Mismatches surface in each team's own pipeline, not in a shared environment days later. It also connects api testing to the point an interviewer is testing.

4 minmid, senior
All 4 in API Testing

Performance Testing

2 questions

Load versus stress versus soak, workload modelling, JMeter and k6 and Gatling, and reading percentiles honestly.

hardConceptScenario

How do you model a realistic workload for a performance test?

Derive the mix, arrival pattern, and data distribution from production telemetry rather than assumptions, size concurrency from throughput and think time instead of guessing a user count, and report percentiles with error rates so the result means something.

4 minmid, senior, staff

Correlating client metrics with server, DB, and JVM evidence to locate a bottleneck rather than guess.

hardScenarioCase Study

The load test was green and the launch still fell over. What did the test not model?

A launch is a transient, not a steady state: users arrive in the same minutes, against cold caches, mostly doing sign-up writes and retrying as it slows. A typical load test ramps gently, uses a closed workload, stubs third parties, runs a smaller fleet and measures in ways that hide stalls.

5 minmid, senior, staff
hardScenarioDesign

CPU saturates on every node minutes after a release that contained forty commits. How do you find the cause?

Stop the bleeding first by rolling back or disabling the suspect path, then find the cause by profiling the saturated process rather than by reading the diff, because a profile names the hot function directly while forty commits offer forty plausible stories. Use this performance analysis answer to show the decision, trade-off, and evidence rather than a memorised definition.

5 minmid, senior, staff
All 3 in Performance Analysis & Tuning

Mobile Testing

3 questions

Device and OS fragmentation, Appium, real device versus emulator trade-offs, and mobile-specific defects.

mediumConceptScenario

What makes testing a mobile app different from testing a web application?

Mobile adds four things a browser mostly hides: a device and OS matrix you cannot enumerate, a network that degrades and disappears mid-request, an operating system that interrupts and revokes permissions at will, and hardware behaviour that emulators cannot reproduce.

6 minentry, mid, senior
All 3 in Mobile Testing

SDET Coding Rounds

2 questions

The DSA and code-design questions asked of automation engineers, plus framework build-out exercises.

QA in CI/CD

3 questions

Gating pipelines, test data management, parallelisation, environment strategy, and quality metrics.

mediumConceptDesignScenario

Which tests should run on every commit and which should run nightly, and how do you decide?

Give the blocking stage a fixed time budget and put only fast, deterministic, developer-diagnosable tests inside it; everything slow, environment-dependent or exploratory moves to a scheduled run with a named owner. Use this ci cd answer to show the decision, trade-off, and evidence rather than a memorised definition. It also connects test automation to the point an interviewer is testing.

7 minmid, senior, lead
All 3 in QA in CI/CD

QA Scenarios

3 questions

Judgement situations: no requirements, no time, a flaky suite, a production escape, a resistant dev team.

mediumScenarioCoding

The interviewer hands you working production code with a few deliberate changes that break it. You have 45 minutes. What do you do before you read line one?

In a debugging exercise with planted breaks, get a feedback loop before you read closely. Ask what correct behaviour is, whether you can run it and its tests, and what counts as done, then let failing behaviour point you to the code. Small planted changes hide from reading and show up when the code runs.

5 minentry, mid, senior
All 3 in QA Scenarios