Skip to content
SDETRole
SDETRole

Practice / Interview questions

SDET & QA Interview Questions

Real questions from QA and SDET interview loops, answered the way a senior engineer would answer them, with code. Filter by topic, difficulty and experience, try answering first, then reveal the answer.

119 questions

How do you test pagination?

API Testing intermediate 2–5 yrs

How to prepare for SDET and QA interviews

SDET interviews test three things: whether you understand testing (what to test and why), whether you can automate it well (code, frameworks, tools), and whether you can reason about quality at the level of a whole system. The weight of each shifts with seniority, so it helps to know which stage you are preparing for.

Junior QA and automation roles (0–2 years)

Expect definitions used precisely and applied to examples: severity versus priority, boundary value analysis and equivalence partitioning, smoke versus sanity testing, and how to write a good bug report. Automation questions are usually about locators, waits and one language. Start with software testing interview questions and manual testing interview questions, then one tool.

Mid-level SDET roles (2–5 years)

The focus moves to automation depth: Playwright, Selenium or Cypress internals, API testing strategy, async JavaScript or Java, SQL for data checks, and how tests run in CI/CD. Most loops include a coding exercise, so pair these questions with the JavaScript coding challenges or the SQL lab.

Senior SDET roles (5+ years)

Senior SDET interview questions are open-ended: how you would structure a framework, cut a 2,000-test UI suite to under 15 minutes, decide what not to automate, or design a test strategy in a system design round for SDETs. Interviewers look for trade-offs, not a single right answer, and for evidence that you have dealt with flaky tests and slow pipelines in practice.

How to use this question bank

  • Filter by topic, difficulty and experience to match the role you are applying for. Filters are kept in the URL, so you can bookmark a filtered view.
  • Read the question, answer it out loud or in writing, then reveal the model answer. Each answer starts with a short version you could say in 30 seconds, followed by the detail and code.
  • Bookmark questions you struggled with and use the "Bookmarked only" filter to review them before the interview.
  • Open a question to see related questions, the lesson that teaches the concept and the lab where you can practise it.

What makes a strong answer

Good answers start with a direct response, then justify it with a concrete example from a real project, and finish with the trade-off or limitation. For example, asked why a test is flaky, a strong candidate names the likely category (timing, shared data, environment, order dependence), explains how they would confirm it with traces or logs, and only then describes the fix. The SDET mock interview scores your written answers against a rubric of key points, which is a quick way to see which parts of an answer you tend to leave out.

For a structured plan covering several weeks, read the SDET interview preparation roadmap.

SDET interview preparation FAQ

How do I prepare for an SDET interview?

Work backwards from the job description. List the stack it names, then prepare in this order: a coding refresher in that language; testing fundamentals and test design; the automation framework (locators, waits, fixtures, page objects); API testing and SQL; and your own projects, ready to explain. Answer questions out loud before reading the model answers, and finish with a timed mock interview. The SDET interview preparation roadmap turns this into a week-by-week plan.

What topics should I study for an SDET interview?

Most SDET interview loops cover a programming language (collections, strings, OOP, async code); testing fundamentals (test pyramid, boundary values, severity versus priority); UI automation (locators, waits, page objects, flaky tests); API testing (HTTP methods, status codes, authentication, schema validation); SQL (joins, grouping, duplicates); Git and CI/CD; and, for senior roles, framework design and test strategy. Use the topic filters on this page to work through each area, starting with the ones named in the job description.

What are the most common SDET interview questions?

Questions cluster by round. Screening: describe your framework and how you decide what to automate. Automation: handle a StaleElementReferenceException, explain Playwright auto-waiting, stop tests being flaky. API: PUT versus PATCH, and what you validate in a response. SQL: find duplicate emails or the second-highest value. Design: build a test strategy for a payments service. Each has a worked answer here, for example PUT vs PATCH and flaky tests in CI.

How many coding questions are asked in SDET interviews?

It varies by company, so treat any number as a guide. A common pattern is one or two coding problems per technical round, with one or two coding rounds in the loop. Problems are usually practical, such as string manipulation, arrays and maps, parsing JSON or log data, or retrying async calls, rather than advanced algorithms. Many companies also ask you to write an automation test or debug a failing one. Practise both with the JavaScript challenges and the SQL lab.

Is JavaScript required for SDET roles?

No single language is required across the industry. JavaScript or TypeScript is expected when the team uses Playwright, Cypress, WebdriverIO or a Node.js stack, which is common in web product companies. Java dominates many Selenium and REST Assured frameworks, and Python is common with pytest. Prepare in the language the job description names. If you can choose, TypeScript is a good bet for web automation; start with JavaScript essentials for testers.

What is the difference between SDET 1 and SDET 2?

Levels differ by company, but the pattern is consistent. An SDET 1 (entry or junior level) writes and maintains tests inside an existing framework, fixes failures and learns the product with guidance. An SDET 2 (mid level) works independently: extends the framework, owns test coverage for a feature or service, improves CI reliability, reviews other people's test code and mentors juniors. Interviews for SDET 2 add framework design and deeper debugging questions, not just syntax.

How do I prepare for a senior SDET interview?

Senior SDET interviews test judgement more than syntax. Expect framework architecture questions, a test strategy or system design round (for example, testing a payments or event-driven service), CI/CD and parallelisation trade-offs, handling flaky suites at scale, and leadership scenarios such as persuading a team to adopt contract tests. Prepare two or three stories with measurable impact. Practise with the framework design and SDET system design questions.

How can I practise SDET interview questions online?

Use this page: filter questions by topic, difficulty and experience level, try answering first, then reveal a senior-level answer with code. Bookmark the ones you miss and revisit them. For hands-on rounds, solve challenges in the practice labs, where your code, locators and SQL are executed or checked. When you feel ready, run a timed mock interview to rehearse under pressure. Everything is free and runs in your browser.

Type to search across SDETRole.

Full-text search by Pagefind · runs in your browser Open search page →