Skip to the page

30 questions · 6 rounds

QA automation and SDET interview questions

Questions from real QA automation / SDET rounds, grouped by the round that asks them. Open one for the follow-ups, what a strong answer covers and the traps. Then say your answer out loud: see the QA automation / SDET mock interview.

Part 1 · 19 questions

Technical screen

  1. DELETE, TRUNCATE and DROP

    SQL querying · Concept · Mid

    What's the difference between DELETE, TRUNCATE and DROP? If you had to empty a 200-million-row log table in production, which would you use?

  2. Aggregate in WHERE

    SQL querying · Write code · Mid

    This query should list cities with more than 100 orders in 2026, but it throws an error. What's wrong, and how do you fix it? (code)

  3. A locator for a row in a changing table

    UI automation · Build it · Mid

    Here's an orders table. The row ids change on every page load, and sorting changes the row order. Write a Selenium locator, XPath or CSS, that clicks the Cancel button in the row for order…

  4. Review a Selenium test full of sleeps

    UI automation · Write code · Mid

    This test passes on my machine but fails often in CI. What problems do you see, and how would you fix them? (code)

  5. Clustered and non-clustered indexes

    Indexes and query performance · Concept · Mid, Senior

    What's the difference between a clustered and a non-clustered index? How does MySQL's InnoDB store a table compared with PostgreSQL?

  6. My orders API gets slower every week

    Indexes and query performance · Scenario · Mid, Senior

    Our 'My orders' API used to answer in 80 milliseconds. Over the last month its p99 has crept up to 4 seconds, and today the database CPU is at 90%. Nothing was deployed this week. What do…

  7. How would you test a lift

    Testing fundamentals · Scenario · Mid

    Forget software for a minute. How would you test a lift in a 20-floor office building?

  8. Boundary values and equivalence classes

    Testing fundamentals · Concept · Mid

    A loan form has an amount field that accepts ₹10,000 to ₹5,00,000, in multiples of ₹1,000. Using equivalence classes and boundary values, which values would you test, and why those?

  9. Optimistic or pessimistic locking

    Transactions and locking · Trade-off · Mid, Senior

    When would you use optimistic locking with a version column, and when pessimistic locking with SELECT … FOR UPDATE? Give me one real example of each.

  10. Tables for an e-commerce order system

    Schema design · Design · Mid, Senior

    Design the database tables for an e-commerce order system: customers, addresses, products from many sellers, carts, orders, payments and returns. Walk me through the main tables, keys and…

  11. Status codes for common API cases

    API testing · Concept · Mid

    Which status code should an API return for each of these: something created, a validation error, no token, a valid token but the wrong role, not found, a duplicate, too many requests, and…

  12. Fails only when tests run in parallel

    Flaky tests · Scenario · Mid, Senior

    Since you turned on four parallel workers, cart tests fail at random: one expects 1 item and finds 3, another's 'remove item' can't find its item. Run alone, every test passes. What's…

  13. Blog posts and comments in MongoDB

    NoSQL and MongoDB · Design · Mid, Senior

    Model a blog platform in MongoDB: users, posts, comments and likes. A popular post can get 200,000 comments. What do you embed, what do you reference, and why?

  14. Saved address shows the old value

    PostgreSQL and MySQL · Scenario · Mid, Senior

    Users update their delivery address, the app says 'Saved', but the next page still shows the old address. A few seconds later it's fine. Reads go to a replica. What's happening, and what…

  15. A static WebDriver in a parallel TestNG suite

    Test frameworks and CI · Write code · Mid, Senior

    We switched this suite to run methods in parallel on four threads. Now tests type into each other's browsers, and some fail with 'invalid session id'. Why? How would you fix it? (code)

  16. Emulators, your own devices or a cloud device farm

    Mobile and performance testing · Trade-off · Senior

    For mobile automation, would you use emulators and simulators, a rack of your own phones, or a cloud device farm? How would you split the testing between them?

  17. Cache-aside: update or delete the key?

    Redis and caching · Trade-off · Mid, Senior

    We cache product details in Redis using cache-aside. When a product's price changes, should we update the cache or delete the key? And should we touch the cache before or after writing the…

  18. Count each character in a string

    Coding for testers · Build it · Mid

    Write a Java method that counts how many times each character appears in a string, ignoring spaces and case, and prints the counts in the order the characters first appear. For 'Test…

  19. Partitioning or sharding

    Scaling databases · Concept · Mid, Senior

    What's the difference between partitioning and sharding? When would you partition a table, and when would you shard a database?

Part 2 · 2 questions

Coding for testers

  1. Valid parentheses (LeetCode 20)

    DSA · Build it · Mid, Senior

    Given a string of brackets, ()[]{}, return whether it's balanced.

  2. 3Sum variant (LeetCode 15)

    DSA · Build it · Mid, Senior

    Find all unique triplets in the array that sum to a target.

Part 3 · 3 questions

Techno-managerial

  1. A junior's pull request is weak

    Techno-managerial · Scenario · Senior, Lead

    A junior developer raises a PR for a new form. It works, but it has copy-pasted blocks, no tests, a 400-line component, and state in five places. The release is in two days. How do you…

  2. Tech debt or new features

    Techno-managerial · Trade-off · Senior, Lead

    Your team's build takes 25 minutes, flaky tests block merges, and a state library is two major versions behind. Product wants three new features this quarter and no slowdown. How do you…

  3. How you use AI tools day to day

    AI at work · Your experience · Mid, Senior

    How do you use AI tools in your work today? Give me a real example from the last month.

Part 4 · 2 questions

Resume deep dive

  1. "Architected / built from scratch" — the whiteboard test

    Resume deep-dive · Your experience · Senior, Lead

    Draw the architecture of the system you 'architected'. Where does the data and state live? How does auth work? How is it built and deployed?

  2. "I" vs "we" probing

    Resume deep-dive · Your experience · Mid, Senior

    You keep saying 'we'. What exactly did you write or decide?

Part 5 · 2 questions

Behavioural / HM

  1. Code-review and debugging rounds

    Leadership & behavioural · Write code · Senior

    "Here's a teammate's pull request in the stack you work in. Review it like a real PR." Or: "This app has bugs and four failing tests. Fix them while thinking aloud."

  2. "How would you scale a website?" / design a hypothetical app front to back

    Leadership & behavioural · Design · Senior

    "How would you scale a website?" (Razorpay HM). Flipkart variant: "Design a hypothetical app, front end plus back end: GET/POST/PUT choices, request and response shapes, frontend…

Part 6 · 2 questions

Recruiter / HR round

  1. Background verification

    HR & recruiter · Your experience · Mid, Senior, Lead

    Our BGV partner will verify your employment history, including UAN service history, relieving letters and education. Is there anything we should know before we start?

  2. Current CTC and its breakup

    HR & recruiter · Your experience · Mid, Senior, Lead

    What's your current CTC? Can you give me the breakup: fixed, variable, and anything else?

Reading is not answering. Say it out loud.

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview