SDET (Software Development Engineer in Test) Interview Questions & Answers
40 questions for SDET (Software Development Engineer in Test) interviews — 4 easy, 34 medium, 2 hard.
About the SDET (Software Development Engineer in Test) role
A developer-minded tester who designs test frameworks, writes API and UI automation, adds tests to CI/CD pipelines and often contributes to testability of the product code. SDET interviews include Java coding rounds on strings and collections, framework design, API testing, mocking and pipeline questions, with a stronger focus on code quality than a typical automation role.
What is a quality gate in a CI/CD pipeline?
Show answer
Write a REST Assured PUT test that updates a resource using a POJO.
Show answer
POST vs PUT vs PATCH?
Show answer
Your CI pipeline is blocked because a downstream service needed for API tests is often down. What do you do?
Show answer
What is JsonPath and how do you use it for nested JSON?
Show answer
Difference between ArrayList and LinkedList?
Show answer
How do you avoid page object classes becoming too large?
Show answer
Describe a time you improved the maintainability of an automation framework.
Show answer
What is a webhook and how do you test it?
Show answer
How do you validate an XML response in REST Assured?
Show answer
Tell me about a time you introduced BDD to a team. How did it go?
Show answer
How do you test API security basics as an automation tester?
Show answer
What are the Actions class use cases?
Show answer
What is the difference between static and non-static members?
Show answer
How do you pass authentication in an API test?
Show answer
What are page components or page fragments in POM?
Show answer
How do you handle a component that appears inside many different pages, like a modal dialog?
Show answer
How do you validate a response against a JSON schema in REST Assured?
Show answer
What is the Page Object Model?
Show answer
What are try-with-resources and why use them?
Show answer
An API returns a list in random order and your assertion on the first element fails intermittently. How do you fix it?
Show answer
Tell me about a time you had to explain a technical test failure to a non-technical manager.
Show answer
Write a REST Assured test that deserializes a response into a POJO.
Show answer
Explain your CI/CD pipeline for tests.
Show answer
What are filters in REST Assured?
Show answer
What are wrapper classes in Java?
Show answer
A developer changed the UI and 40 tests failed with NoSuchElementException. How does POM help here?
Show answer
Your code review shows a test class with 30 copy-pasted lines in every method. How do you refactor it with Java features?
Show answer
What is the difference between SOAP and REST?
Show answer
What is method overriding and where is it useful in frameworks?
Show answer
How do you run Selenium tests in Docker containers in CI?
Show answer
How does HashMap work internally?
Show answer
Tell me about a time you moved from web automation to mobile automation.
Show answer
What are generics in Java and how do they help in a test framework?
Show answer
Your API tests started failing with SSL handshake errors on a new test server. What do you do?
Show answer
What is the use of the this and super keywords?
Show answer
Write a REST Assured test using RequestSpecBuilder and ResponseSpecBuilder.
Show answer
You see ConcurrentModificationException in your test utility. What causes it and how do you fix it?
Show answer
What is the LoadableComponent pattern in Selenium?
Show answer
Frequently asked questions
What does a SDET (Software Development Engineer in Test) do?
A developer-minded tester who designs test frameworks, writes API and UI automation, adds tests to CI/CD pipelines and often contributes to testability of the product code. SDET interviews include Java coding rounds on strings and collections, framework design, API testing, mocking and pipeline questions, with a stronger focus on code quality than a typical automation role.
Which skills are tested in a SDET (Software Development Engineer in Test) interview?
Expect questions on Java coding, Framework design, API automation, CI/CD pipelines, Mocking and contracts. Most rounds also ask you to explain a project and solve one practical problem live.
How do I prepare for a SDET (Software Development Engineer in Test) interview?
Revise Core Java for Testers, API Testing and CI/CD, REST Assured, Page Object Model first using the topic sheets, practise the questions on this page aloud, then do one full mock interview to practise timing.