Testing interview question
How do you approach performance and load testing?
How you'd do it Asked in Backend Engineer · QA Engineer / SDET · Frontend Engineer · Full Stack Engineer interviews
Summary
Define goals first (for example p95 under 300 ms at 2,000 requests per second with under 0.1% errors), model realistic traffic (user journeys, think time, data variety), run tests against a production-like environment, ramp load in stages, and watch both the client results and server metrics to find the bottleneck. Repeat after fixes and run a smaller version regularly in CI.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Testing questions
- What makes a good unit test?
- How do you write reliable integration tests that use a database?
- What is the test pyramid, and is it still relevant?
- Your end-to-end test suite is flaky and takes an hour. How do you fix it?
- How would you design a test strategy for a new web application?
- What's the difference between mocks, stubs, fakes and spies?
- Write a Playwright test that logs in and checks the dashboard, and explain how you keep it stable.
- What causes flaky tests and how do you fix them?