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

  1. Most asked What is the test pyramid, and is it still relevant?
  2. Most asked What makes a good unit test?
  3. Most asked What's the difference between mocks, stubs, fakes and spies?
  4. Most asked How do you write reliable integration tests that use a database?
  5. Most asked What causes flaky tests and how do you fix them?
  6. Most asked How would you design a test strategy for a new web application?
  7. Most asked Your end-to-end test suite is flaky and takes an hour. How do you fix it?
  8. Most asked Write a Playwright test that logs in and checks the dashboard, and explain how you keep it stable.
  9. Most asked Is 100% code coverage a good goal?
  10. What should end-to-end tests cover, and how do you keep them stable?
  11. What is test-driven development (TDD) and when is it useful?
  12. What is contract testing?
  13. How do you test code that depends on the current time or randomness?
  14. How do you test code that calls external HTTP services?
  15. How should you test frontend components?
  16. What is contract testing, and when would you use it?
  17. How do you test an API, and what would you automate?
  18. What is the test pyramid, and when does it not fit?
  19. How do you approach performance and load testing?
  20. A critical bug reached production even though all tests passed. What do you do?
  21. How do you manage test data for automated tests?
  22. What should block a release, and how do you report quality to stakeholders?
  23. What is mutation testing, and what does it tell you that code coverage doesn't?
  24. How do you test a feature behind a feature flag?
  25. How do you integrate automated tests into a CI/CD pipeline?
  26. What is exploratory testing, and how do you do it well?
  27. Tell me about a time you improved a team's test automation.
  28. How should you manage test data?
  29. How do you test asynchronous code?
  30. What is property-based testing?
  31. What are snapshot tests, and what are their risks?
  32. How do you prevent regressions when fixing bugs?
  33. Where do performance tests fit in a test strategy?
  34. How do you include security testing in development?
  35. What are ephemeral (preview) environments and why use them?
  36. What is chaos engineering?
  37. How do you keep a large test suite fast?
  38. How do you add tests to legacy code that wasn't designed for testing?
  39. What should API tests verify?
  40. How do you test code behind feature flags?
  41. What are smoke tests?
  42. What is mutation testing?
  43. How do you test accessibility?

CI/CD & Deployment Recommended 33

  1. Most asked What's the difference between continuous integration, continuous delivery and continuous deployment?
  2. Most asked What stages does a typical CI/CD pipeline contain?
  3. Most asked Compare rolling, blue-green and canary deployments.
  4. Most asked How do you run database migrations without downtime?
  5. Most asked What are best practices for writing Dockerfiles?
  6. Most asked What's the difference between liveness and readiness probes?
  7. Most asked How do you handle flaky tests in CI?
  8. Most asked How would you design CI/CD for a microservices architecture?
  9. Most asked What is shift-left testing, and what security scanning belongs in a CI pipeline?
  10. Most asked How do you promote a single build artifact from development through staging to production?
  11. Most asked How should secrets be handled in CI/CD pipelines?
  12. Most asked What is pipeline as code and why does it matter?
  13. What are the core Kubernetes objects a web service needs?
  14. What is graceful shutdown and why does it matter for deployments?
  15. How do you design for fast rollback?
  16. How do feature flags change the way teams release software?
  17. What is trunk-based development?
  18. How do you secure the software supply chain in CI/CD?
  19. How should application configuration be managed across environments?
  20. What is infrastructure as code and why use it?
  21. What are self-hosted vs managed CI runners, and when do you choose each?
  22. How do you use build caching and dependency caching to speed up CI pipelines?
  23. What is GitOps?
  24. How do you speed up CI pipelines?
  25. How should build artifacts be versioned and promoted?
  26. What should you monitor during and after a deployment?
  27. What environments do teams typically use, and how do you keep them consistent?
  28. What are the CI/CD trade-offs of monorepos vs polyrepos?
  29. When would you choose serverless functions vs containers vs VMs for deployment?
  30. What are DORA metrics?
  31. What is semantic versioning?
  32. What should happen when a deployment causes an incident?
  33. What is progressive delivery?

Web Security & WAF Recommended 32

  1. Most asked What is the OWASP Top 10 and which risks does it currently highlight?
  2. Most asked What is Cross-Site Scripting (XSS) and how do you prevent it?
  3. Most asked What is SQL injection and how do you prevent it?
  4. Most asked What is CSRF and how do you defend against it?
  5. Most asked What is a Web Application Firewall (WAF), and what can and can't it do?
  6. Most asked How do rate-limiting algorithms work (fixed window, sliding window, token bucket)?
  7. Most asked What is SSRF (Server-Side Request Forgery) and how do you prevent it?
  8. How do you protect a web application from DDoS and abusive traffic?
  9. What is Content-Security-Policy and how do you roll it out?
  10. Which HTTP security headers should every web app send?
  11. What is CORS, and what are common CORS misconfigurations?
  12. How do you manage vulnerable and outdated dependencies?
  13. What are common security misconfigurations in web deployments?
  14. How do you handle file uploads securely?
  15. How should applications manage secrets?
  16. What are insecure deserialization vulnerabilities?
  17. What is clickjacking and how do you prevent it?
  18. What are best practices for TLS/HTTPS?
  19. How do you protect sign-up, login and checkout flows from bots?
  20. What is threat modeling and how do you run one?
  21. What is an open redirect vulnerability?
  22. What is command injection and how do you prevent it?
  23. What is path traversal and how do you prevent it?
  24. Why are security logging and monitoring failures in the OWASP Top 10?
  25. What are software and data integrity failures?
  26. What are common cryptographic failures?
  27. What new security risks do LLM-powered features introduce?
  28. What does the OWASP API Security Top 10 add beyond the web Top 10?
  29. How do cookie prefixes like __Host- and __Secure- improve security?
  30. How do you build security into the development lifecycle?
  31. What is XXE (XML External Entity) injection?
  32. What is subdomain takeover?

API Design Recommended 33

  1. Most asked What makes an API RESTful, and what are good REST design practices?
  2. Most asked Which HTTP methods are safe and idempotent, and why does it matter?
  3. Most asked Which HTTP status codes should an API use, and when?
  4. Most asked Compare offset pagination and cursor (keyset) pagination.
  5. Most asked How should you version an API?
  6. Most asked How do idempotency keys work for POST requests?
  7. Most asked Write an Express or FastAPI endpoint that creates an order idempotently.
  8. Most asked Write a SQL query that returns each customer's three most recent orders.
  9. Most asked When would you choose GraphQL over REST, or gRPC over both?
  10. An API endpoint that was fast is now taking seconds under load. Walk through your investigation.
  11. How should APIs format error responses?
  12. How do you design reliable webhooks?
  13. How should APIs support filtering, sorting and field selection?
  14. Why use OpenAPI (and contract-first design)?
  15. What counts as a breaking change in an API?
  16. How should an API communicate rate limits to clients?
  17. How do you design APIs for long-running operations?
  18. How do APIs prevent lost updates from concurrent edits?
  19. What is HATEOAS and is it used in practice?
  20. How do you design bulk or batch endpoints?
  21. What naming conventions make APIs easier to use?
  22. What security practices apply to API design?
  23. What does an API gateway do, and when do you need one?
  24. How should APIs represent dates, times and money?
  25. What makes a great developer experience for a public API?
  26. PUT vs PATCH: how do you implement updates?
  27. How do you design event-driven APIs (events between services)?
  28. How should APIs handle large file uploads and downloads?
  29. What should a health or status endpoint return?
  30. How can APIs leverage HTTP caching?
  31. How do you deprecate an API endpoint responsibly?
  32. What consistency guarantees should an API document?
  33. How do APIs handle localization?

Behavioral & STAR Recommended 41

  1. Most asked Tell me about a time you worked with a difficult teammate.
  2. Most asked Describe a disagreement you had with a coworker and how you resolved it.
  3. Most asked Tell me about a time you disagreed with your manager's decision.
  4. Most asked Tell me about a time you failed at something important.
  5. Most asked Describe a mistake that had a significant impact and how you handled it.
  6. Most asked Tell me about a time you had to work with unclear or changing requirements.
  7. Most asked Tell me about a time you missed a deadline.
  8. Most asked Tell me about a time you received critical feedback and how you responded.
  9. Most asked Describe a project you owned from start to finish.
  10. Most asked Tell me about a time you had to juggle multiple competing deadlines.
  11. Tell me about a time you led a project without formal authority.
  12. Tell me about a time you took responsibility for a team failure.
  13. Describe a time you had to collaborate with someone whose working style was very different from yours.
  14. Tell me about a successful project you completed as part of a team.
  15. Tell me about a time you helped a struggling teammate.
  16. Describe a time you had to push back on a stakeholder's request.
  17. Describe a time you had to deliver unwelcome feedback to a peer.
  18. Describe a time you had to motivate a team through a difficult period.
  19. Tell me about a decision you made that was unpopular with your team.
  20. Tell me about a time you had to make a decision with incomplete information as a leader.
  21. Tell me about a project that didn't go as planned.
  22. Tell me about a time you went above and beyond your job description.
  23. Describe a time you identified a problem no one had asked you to solve.
  24. Describe a situation where you had to make a decision without all the information you wanted.
  25. Tell me about a time priorities shifted midway through a project.
  26. Describe how you decide what to work on when everything feels urgent.
  27. Tell me about a time you helped a colleague grow their skills.
  28. Tell me about a time you received feedback that was hard to hear.
  29. Describe a time you had to rely on a team member you didn't fully trust yet.
  30. Tell me about a conflict between two people on your team and how you handled it.
  31. Describe a time you delegated an important task.
  32. Tell me about a time you had to say no to your manager.
  33. Describe how you handle working on something without a clear owner.
  34. Tell me about a time you had to say no to a request to protect a deadline.
  35. Describe a time you had to deprioritize something important.
  36. Describe your approach to onboarding a new team member.
  37. Tell me about a time you gave someone feedback that changed their behavior.
  38. Describe a time you learned something valuable from someone more junior than you.
  39. Describe how you typically respond to criticism.
  40. Tell me about a time you gave feedback that was poorly received.
  41. Describe a time feedback from a peer changed how you approached your work.

Was this page helpful?

Report a mistake