Skip to main content

What is the test pyramid and how do you apply it in practice?

  • test pyramid
  • test strategy
  • test distribution

Answer it first, then compare. Nothing here is saved or scored.

Model answer

The test pyramid suggests: many fast unit tests at the base, fewer integration tests in the middle, and few slow E2E tests at the top. In practice: developers own unit tests, QA focuses on integration and E2E tests for critical flows. The anti-pattern is the "ice cream cone", too many E2E tests that are slow and flaky. Apply it pragmatically: if your app is API-heavy, invest more in API integration tests. If it's UI-heavy, visual regression tests may be more valuable than unit tests.

What interviewers listen for

  • Risk-based prioritisation
    You can defend skipping coverage on a path because the risk maths supports it.
  • Test design fluency
    You apply equivalence partitioning and decision tables to concrete inputs in real time.
  • Metric judgment
    You distinguish between metrics that drive learning and metrics that drive theatre.
  • Strategy under constraint
    You can produce a defensible plan when the team has half the time and twice the scope.

Terms to know

See all 33 methodology questions

Written by , Senior QA Automation Engineer, 50+ QA candidate interviews conductedLast updated July 2026