QA Engineer / SDET · interview questions
QA Engineer / SDET interview questions
From the role's core and recommended topics, most asked first. Filter by the kind of answer the question wants.
Testing Core 43
- Most asked What is the test pyramid, and is it still relevant?
- Most asked What makes a good unit test?
- Most asked What's the difference between mocks, stubs, fakes and spies?
- Most asked How do you write reliable integration tests that use a database?
- Most asked What causes flaky tests and how do you fix them?
- Most asked How would you design a test strategy for a new web application?
- Most asked Your end-to-end test suite is flaky and takes an hour. How do you fix it?
- Most asked Write a Playwright test that logs in and checks the dashboard, and explain how you keep it stable.
- Most asked Is 100% code coverage a good goal?
- What should end-to-end tests cover, and how do you keep them stable?
- What is test-driven development (TDD) and when is it useful?
- What is contract testing?
- How do you test code that depends on the current time or randomness?
- How do you test code that calls external HTTP services?
- How should you test frontend components?
- What is contract testing, and when would you use it?
- How do you test an API, and what would you automate?
- What is the test pyramid, and when does it not fit?
- How do you approach performance and load testing?
- A critical bug reached production even though all tests passed. What do you do?
- How do you manage test data for automated tests?
- What should block a release, and how do you report quality to stakeholders?
- What is mutation testing, and what does it tell you that code coverage doesn't?
- How do you test a feature behind a feature flag?
- How do you integrate automated tests into a CI/CD pipeline?
- What is exploratory testing, and how do you do it well?
- Tell me about a time you improved a team's test automation.
- How should you manage test data?
- How do you test asynchronous code?
- What is property-based testing?
- What are snapshot tests, and what are their risks?
- How do you prevent regressions when fixing bugs?
- Where do performance tests fit in a test strategy?
- How do you include security testing in development?
- What are ephemeral (preview) environments and why use them?
- What is chaos engineering?
- How do you keep a large test suite fast?
- How do you add tests to legacy code that wasn't designed for testing?
- What should API tests verify?
- How do you test code behind feature flags?
- What are smoke tests?
- What is mutation testing?
- How do you test accessibility?
CI/CD & Deployment Recommended 33
- Most asked What's the difference between continuous integration, continuous delivery and continuous deployment?
- Most asked What stages does a typical CI/CD pipeline contain?
- Most asked Compare rolling, blue-green and canary deployments.
- Most asked How do you run database migrations without downtime?
- Most asked What are best practices for writing Dockerfiles?
- Most asked What's the difference between liveness and readiness probes?
- Most asked How do you handle flaky tests in CI?
- Most asked How would you design CI/CD for a microservices architecture?
- Most asked What is shift-left testing, and what security scanning belongs in a CI pipeline?
- Most asked How do you promote a single build artifact from development through staging to production?
- Most asked How should secrets be handled in CI/CD pipelines?
- Most asked What is pipeline as code and why does it matter?
- What are the core Kubernetes objects a web service needs?
- What is graceful shutdown and why does it matter for deployments?
- How do you design for fast rollback?
- How do feature flags change the way teams release software?
- What is trunk-based development?
- How do you secure the software supply chain in CI/CD?
- How should application configuration be managed across environments?
- What is infrastructure as code and why use it?
- What are self-hosted vs managed CI runners, and when do you choose each?
- How do you use build caching and dependency caching to speed up CI pipelines?
- What is GitOps?
- How do you speed up CI pipelines?
- How should build artifacts be versioned and promoted?
- What should you monitor during and after a deployment?
- What environments do teams typically use, and how do you keep them consistent?
- What are the CI/CD trade-offs of monorepos vs polyrepos?
- When would you choose serverless functions vs containers vs VMs for deployment?
- What are DORA metrics?
- What is semantic versioning?
- What should happen when a deployment causes an incident?
- What is progressive delivery?
Web Security & WAF Recommended 32
- Most asked What is the OWASP Top 10 and which risks does it currently highlight?
- Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
- Most asked What is SQL injection and how do you prevent it?
- Most asked What is CSRF and how do you defend against it?
- Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
- Most asked How do rate-limiting algorithms work (fixed window, sliding window, token bucket)?
- Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
- How do you protect a web application from DDoS and abusive traffic?
- What is Content-Security-Policy and how do you roll it out?
- Which HTTP security headers should every web app send?
- What is CORS, and what are common CORS misconfigurations?
- How do you manage vulnerable and outdated dependencies?
- What are common security misconfigurations in web deployments?
- How do you handle file uploads securely?
- How should applications manage secrets?
- What are insecure deserialization vulnerabilities?
- What is clickjacking and how do you prevent it?
- What are best practices for TLS/HTTPS?
- How do you protect sign-up, login and checkout flows from bots?
- What is threat modeling and how do you run one?
- What is an open redirect vulnerability?
- What is command injection and how do you prevent it?
- What is path traversal and how do you prevent it?
- Why are security logging and monitoring failures in the OWASP Top 10?
- What are software and data integrity failures?
- What are common cryptographic failures?
- What new security risks do LLM-powered features introduce?
- What does the OWASP API Security Top 10 add beyond the web Top 10?
- How do cookie prefixes like __Host- and __Secure- improve security?
- How do you build security into the development lifecycle?
- What is XXE (XML External Entity) injection?
- What is subdomain takeover?
API Design Recommended 33
- Most asked What makes an API RESTful, and what are good REST design practices?
- Most asked Which HTTP methods are safe and idempotent, and why does it matter?
- Most asked Which HTTP status codes should an API use, and when?
- Most asked Compare offset pagination and cursor (keyset) pagination.
- Most asked How should you version an API?
- Most asked How do idempotency keys work for POST requests?
- Most asked Write an Express or FastAPI endpoint that creates an order idempotently.
- Most asked Write a SQL query that returns each customer's three most recent orders.
- Most asked When would you choose GraphQL over REST, or gRPC over both?
- An API endpoint that was fast is now taking seconds under load. Walk through your investigation.
- How should APIs format error responses?
- How do you design reliable webhooks?
- How should APIs support filtering, sorting and field selection?
- Why use OpenAPI (and contract-first design)?
- What counts as a breaking change in an API?
- How should an API communicate rate limits to clients?
- How do you design APIs for long-running operations?
- How do APIs prevent lost updates from concurrent edits?
- What is HATEOAS and is it used in practice?
- How do you design bulk or batch endpoints?
- What naming conventions make APIs easier to use?
- What security practices apply to API design?
- What does an API gateway do, and when do you need one?
- How should APIs represent dates, times and money?
- What makes a great developer experience for a public API?
- PUT vs PATCH: how do you implement updates?
- How do you design event-driven APIs (events between services)?
- How should APIs handle large file uploads and downloads?
- What should a health or status endpoint return?
- How can APIs leverage HTTP caching?
- How do you deprecate an API endpoint responsibly?
- What consistency guarantees should an API document?
- How do APIs handle localization?
Behavioral & STAR Recommended 41
- Most asked Tell me about a time you worked with a difficult teammate.
- Most asked Describe a disagreement you had with a coworker and how you resolved it.
- Most asked Tell me about a time you disagreed with your manager's decision.
- Most asked Tell me about a time you failed at something important.
- Most asked Describe a mistake that had a significant impact and how you handled it.
- Most asked Tell me about a time you had to work with unclear or changing requirements.
- Most asked Tell me about a time you missed a deadline.
- Most asked Tell me about a time you received critical feedback and how you responded.
- Most asked Describe a project you owned from start to finish.
- Most asked Tell me about a time you had to juggle multiple competing deadlines.
- Tell me about a time you led a project without formal authority.
- Tell me about a time you took responsibility for a team failure.
- Describe a time you had to collaborate with someone whose working style was very different from yours.
- Tell me about a successful project you completed as part of a team.
- Tell me about a time you helped a struggling teammate.
- Describe a time you had to push back on a stakeholder's request.
- Describe a time you had to deliver unwelcome feedback to a peer.
- Describe a time you had to motivate a team through a difficult period.
- Tell me about a decision you made that was unpopular with your team.
- Tell me about a time you had to make a decision with incomplete information as a leader.
- Tell me about a project that didn't go as planned.
- Tell me about a time you went above and beyond your job description.
- Describe a time you identified a problem no one had asked you to solve.
- Describe a situation where you had to make a decision without all the information you wanted.
- Tell me about a time priorities shifted midway through a project.
- Describe how you decide what to work on when everything feels urgent.
- Tell me about a time you helped a colleague grow their skills.
- Tell me about a time you received feedback that was hard to hear.
- Describe a time you had to rely on a team member you didn't fully trust yet.
- Tell me about a conflict between two people on your team and how you handled it.
- Describe a time you delegated an important task.
- Tell me about a time you had to say no to your manager.
- Describe how you handle working on something without a clear owner.
- Tell me about a time you had to say no to a request to protect a deadline.
- Describe a time you had to deprioritize something important.
- Describe your approach to onboarding a new team member.
- Tell me about a time you gave someone feedback that changed their behavior.
- Describe a time you learned something valuable from someone more junior than you.
- Describe how you typically respond to criticism.
- Tell me about a time you gave feedback that was poorly received.
- Describe a time feedback from a peer changed how you approached your work.