Interview Q&A · questions with model answers

Testing Interview Questions

Part of the study plan for: Backend Engineer · QA Engineer / SDET · Frontend Engineer · Full Stack Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked Your end-to-end test suite is flaky and takes an hour. How do you fix it?

    Measure first: which tests fail intermittently and which are slow. Quarantine flaky tests so they don't block merges, fix the root causes (timing waits, shared test data, order dependence, unstable…

  2. What should end-to-end tests cover, and how do you keep them stable?

    E2E tests should cover a handful of critical user journeys (signup, login, checkout) through the real UI or API. Stabilize them with resilient selectors (roles, labels, test IDs), auto-waiting tools…

  3. A critical bug reached production even though all tests passed. What do you do?

    Help fix and contain it first, then run a blameless review: why didn't any test catch it? Add a test that reproduces the bug, and look for the class of gap behind it (missing scenario, unrealistic…

  4. How do you keep a large test suite fast?

    Parallelize across workers and CI shards, reuse expensive setup (containers per session, transactions per test), avoid sleeps, mock slow external calls, run only affected tests on PRs when tooling…

Was this page helpful?

Report a mistake