QA Interview Hub · Knowledge base · Quizzes · Українська
All topics
Junior QA interview questions
579 questions at Junior level from every topic, by topic and chapter. Answers and explanations are in the quiz and the knowledge base.
By level: Middle QA interview questions · Senior QA interview questions
Playwright
All Playwright interview questions
Architecture and isolation
- How does Playwright control the browser?
- Which browser engines does Playwright support?
Take the quiz for this chapter · Read the explanation in the knowledge base
Browser, Context, Page
- What is a BrowserContext?
- What is the object hierarchy in Playwright?
Take the quiz for this chapter · Read the explanation in the knowledge base
Locators
- Which locators does Playwright recommend preferring?
- What is a Locator in Playwright?
- What does the
exact: true option do in getByRole('button', { name: 'Save', exact: true })? - How does
getByText('Total') differ from getByText('Total', { exact: true })?
Take the quiz for this chapter · Read the explanation in the knowledge base
Auto-waiting and web-first assertions
- What does Playwright check before click() (auto-waiting)?
- What is expect.soft?
- How does
toBeAttached() differ from toBeVisible()? - Which assertion best checks that a spinner has disappeared?
Take the quiz for this chapter · Read the explanation in the knowledge base
Interaction: actions, tabs, frames, files, dialogs
- How do you choose a file for an
<input type="file">?
Take the quiz for this chapter · Read the explanation in the knowledge base
Fixtures and test structure
- What are fixtures in @playwright/test?
Take the quiz for this chapter · Read the explanation in the knowledge base
Network: route and mocks
- What is page.route() for?
Take the quiz for this chapter · Read the explanation in the knowledge base
API testing in Playwright
- What is the request fixture?
- How do you pass the query parameters isbn=1234 and page=2 in a GET request through the request fixture?
- The server accepts the login as an HTML form (application/x-www-form-urlencoded). How do you send such a POST through request?
- The server answers 404 to GET /api/users/999. What does await request.get("/api/users/999") do with no extra options?
- For which HTTP statuses does res.ok() return true?
- The GET /api/report.pdf endpoint returns a PDF. Which response method gives the file content without turning it into a string?
- The test is declared as async ({ request }) => { … } and uses no page, context or browser. How does Playwright run it?
- The server returns the header Content-Type: application/json. What does the expression res.headers()["Content-Type"] return?
Take the quiz for this chapter · Read the explanation in the knowledge base
Authentication and storageState
- What does storageState store?
Take the quiz for this chapter · Read the explanation in the knowledge base
Config, projects, parallelism, CI
- How are tests parallelized by default?
Take the quiz for this chapter · Read the explanation in the knowledge base
Debugging, trace viewer, reports, flaky tests
- What is Trace Viewer?
- How do you debug a test step by step?
- What is npx playwright codegen for?
- What does UI mode (
npx playwright test --ui) give you?
Take the quiz for this chapter · Read the explanation in the knowledge base
Cypress
All Cypress interview questions
Basics and architecture
- Where does Cypress test code run?
- The file cypress/e2e/login.js with tests sits in a project with the default specPattern, but cypress open does not list it among the specs. What is the most likely cause?
- How does cypress open differ from cypress run?
- In which language are Cypress tests written?
Take the quiz for this chapter · Read the explanation in the knowledge base
Command queue and asynchrony
- What does cy.get() return?
- In what order will the logs appear in the console?
cy.visit('/login')
console.log('A')
cy.get('h1').then(() => console.log('B'))
console.log('C')
- What does this code check?
cy.get('.item').its('length').should('eq', 3);
- How do you run a check for every element of the list returned by cy.get('li')?
Take the quiz for this chapter · Read the explanation in the knowledge base
Retry-ability, waiting, timeouts
- What is retry-ability?
- Why is cy.wait(3000) considered an antipattern?
- How is
should('have.text', 'Paid') different from should('contain', 'Paid')? - How is
should('not.exist') different from should('not.be.visible')?
Take the quiz for this chapter · Read the explanation in the knowledge base
Locators and working with the DOM
- Which selector is the most reliable?
- How is cy.get() different from .find()?
- What does the call .type('anna@example.com{enter}') do?
- Which call picks the option with the visible text “Ukraine” in a <select> element?
- The “I agree” checkbox is already checked. What does cy.get('#agree').check() do?
Take the quiz for this chapter · Read the explanation in the knowledge base
Network: cy.intercept
- What is cy.intercept for?
- What happens if you register an intercept after the click that triggers the request?
Take the quiz for this chapter · Read the explanation in the knowledge base
API testing
- What does cy.request do by default if the server returns 404?
- In which property of a cy.request response is the parsed JSON body?
Take the quiz for this chapter · Read the explanation in the knowledge base
State, sessions, isolation
- What does testIsolation (on by default) do?
- How many times does each hook run in this describe?
describe('Cart', () => {
before(() => { cy.log('A'); });
beforeEach(() => { cy.log('B'); });
it('first', () => {});
it('second', () => {});
it('third', () => {});
});
Take the quiz for this chapter · Read the explanation in the knowledge base
Framework architecture
- What are fixtures in Cypress?
- Where are custom commands usually declared so that they are available in all specs?
- Where do files downloaded by the app during a test go by default?
Take the quiz for this chapter · Read the explanation in the knowledge base
CI, parallelization, reports
- Why set baseUrl in cypress.config?
- In CI the tests are started with npx cypress run, with no --browser and no defaultBrowser in the config (Cypress 16). In which browser do they run?
- A CI step reads npm start & npx cypress run. Why is such a launch unreliable?
- What does cypress-io/github-action cache automatically in an npm project?
- Cypress downloads its binary separately from the npm package. Which folder do you cache in CI on Linux to avoid downloading it in every run?
- How does the official Docker image cypress/base differ from cypress/browsers?
- How do you run only the specs from the cypress/e2e/auth folder in CI?
- Where should the test user's password needed by the tests in CI be stored?
- The upload-artifact step comes right after the cypress run step and has no if field. The tests failed. What happens to the screenshot upload step?
- uses: cypress-io/github-action@v7
- uses: actions/upload-artifact@v7
with:
name: screenshots
path: cypress/screenshots
- A test failed during cypress run with the default configuration (Cypress 16). Which artifacts appear on disk?
Take the quiz for this chapter · Read the explanation in the knowledge base
Extra questions from common lists
- After a click the app navigates to /search?q=cypress&page=2. How do you check only the page parameter without comparing the whole URL?
- What does .and() do in this chain?
cy.get('[data-cy=status]')
.should('be.visible')
.and('have.text', 'Paid');
- What status does a test declared as it.skip('...', () => { ... }) get in the report?
- What is cy.pause() added to a test for?
Take the quiz for this chapter · Read the explanation in the knowledge base
TypeScript
All TypeScript interview questions
Basics: primitives, any, unknown, never, literals
- What happens to TypeScript types after compilation?
- How is unknown different from any?
- Which types will TypeScript infer?
let a = 'hi';
const b = 'hi';
- What is the type of the array?
const arr = [1, 'a', 2];
- What does as const do for an object?
const cfg = { env: 'prod', retries: 2 } as const;
- When is the never type used?
- strict is on in tsconfig. What is the type of the parameter inside the function?
function f(timeout?: number) {
// timeout: ?
}
- What are n and m?
const retries: number | undefined = 0;
const n = retries ?? 5;
const m = retries || 5;
- What is the type of process.env.BASE_URL in a Node project with @types/node?
- What does the ! operator after an expression do: document.querySelector('#total')! or process.env.USER!?
- How is the union
A | B different from the intersection A & B for object types? - How is
const different from readonly? - What does
a?.b?.() do? - What does
config.retries ??= 2 do?
Take the quiz for this chapter · Read the explanation in the knowledge base
Object types: interface and type, optional, readonly
- What can an interface do that a type alias can't?
- What happens?
interface Cfg { readonly url: string }
const c: Cfg = { url: 'a' };
c.url = 'b';
Take the quiz for this chapter · Read the explanation in the knowledge base
Type narrowing and type guards
- How do you narrow the error type in a catch?
try { await api.call(); }
catch (e) {
// e: unknown
}
Take the quiz for this chapter · Read the explanation in the knowledge base
Generics
- What type does the async function return?
async function load() {
return 42;
}
Take the quiz for this chapter · Read the explanation in the knowledge base
Utility types
- What does Partial<User> do?
- How do you get the User type without the password field?
Take the quiz for this chapter · Read the explanation in the knowledge base
Modules and tsconfig
- What does a
.d.ts file contain? - Why is
noEmit: true useful on the CI of a test project?
Take the quiz for this chapter · Read the explanation in the knowledge base
QA Fundamentals
All QA Fundamentals interview questions
Testing basics
- What is the order of the phases in the common six-phase STLC model?
- How is verification different from validation?
- How is retesting different from regression testing?
- What does the testing pyramid state?
- What is NOT needed in a bug report?
- How do error, defect and failure differ according to ISTQB?
- What does the principle "exhaustive testing is impossible" mean?
- What does "defect clustering" mean?
- What is a test plan?
- How is a test case different from a checklist?
- What is UAT?
- How is alpha testing different from beta?
- When do tests usually start being executed in the classic Waterfall model?
- Why is a defect in requirements cheaper to fix early than after the release?
- What is static testing?
- What is done at the test closure stage of the STLC?
- During a requirements review the fragment below was found. Which defect of the document is visible without running the system?
REQ-7 The product catalogue must open fast.
REQ-8 An input error is shown next to the field.
- A banking app team runs security and calculation accuracy checks on every release, while a landing page team does a few quick checks. Which testing principle explains this?
- How does testing differ from debugging?
Take the quiz for this chapter · Read the explanation in the knowledge base
Types of testing
- After a new build you need to check within minutes that the main functions work at all. What is this?
- A developer fixed a bug. QA repeats the same steps on the new build to make sure the defect is gone. What type of testing is this?
- After a bug fix in the cart module, QA runs checkout and payment tests to make sure nothing nearby broke. What is this?
- Which of these checks is non-functional?
- In the "Age" field a tester enters letters and checks that an error message appears. What kind of test is this?
- Which of the checks below is non-functional testing (performance)?
1) The Buy button adds the item to the cart
2) The catalogue responds within 2 s
with 500 concurrent users
3) The Checkout button is disabled
when the cart is empty
4) The search field accepts up to 100 characters
- What is the artifact below and what does it not contain?
Explore: password recovery
With: different e-mail addresses
To discover: errors and security problems
Time-box: 60 min
Take the quiz for this chapter · Read the explanation in the knowledge base
Test design techniques
- A password must be 8–20 characters. Which lengths do you check with two-value boundary value analysis (2-value BVA, ISTQB)?
- What is error guessing?
- How is black box different from white box testing?
- The "Age" field accepts whole numbers from 18 to 65 inclusive. Which values does three-value boundary value analysis (3-value BVA) give?
- The "Age" field accepts whole numbers from 18 to 65 inclusive and rejects everything else. Non-numeric input is out of scope. How many equivalence classes does this rule give if values below and above the range count as separate classes?
- How many values from one equivalence class do you take into a test if the class is truly homogeneous, meaning the system handles all its values the same way?
- A loan decision depends on four independent conditions, each of which is either met or not. How many rules (columns) does the full decision table have before any reduction?
- Order statuses: New, Paid, Shipped, Delivered, Cancelled. Allowed transitions: New → Paid, Paid → Shipped, Shipped → Delivered, plus New → Cancelled and Paid → Cancelled. All other transitions are forbidden. Which test is a negative transition test?
- A price field accepts values from 0.01 to 9999.99 in steps of 0.01. Which two values does two-value boundary value analysis give for the lower boundary?
- Use case "Pay for an order": the main flow is that the user enters card details, the bank confirms the payment and the system shows a confirmation. Which scenario is an alternative flow of this use case?
- What does requirements coverage show?
- The "Name" field was already checked with equivalence classes and length boundaries. Which extra check belongs specifically to error guessing?
- The boundary between the 50 and 90 UAH tariffs of the table below is checked with two-value boundary value analysis (2-value BVA). Which two weight values does it give?
Parcel weight (kg), step 0.01
0.01–2.00 -> 50 UAH
2.01–10.00 -> 90 UAH
10.01–30.00 -> 150 UAH
above 30 -> refused
Take the quiz for this chapter · Read the explanation in the knowledge base
Test documentation
- What should a good test case contain?
- Which of these requirements is the hardest to test?
- When is a checklist more appropriate than detailed test cases?
- Which expected result in a test case is worded correctly?
- Why should a single test case not check many independent things at once?
- What is wrong with the test case below?
Title: Check login
Steps: enter the data and click "Log in"
Expected result: everything works
- What is the requirements coverage by this data?
Requirements in total: 40
Requirements with >= 1 case: 34
Cases in the run: 150
Executed: 120
Passed: 114
Take the quiz for this chapter · Read the explanation in the knowledge base
Bugs
- The "Pay" button does not work for any user. Severity and priority?
- What matters most in the steps to reproduce a bug?
- How does the Reopened status differ from New?
- There is a typo in the company logo on the home page, visible to every visitor. The application works without failures. What are the severity and priority?
- The application crashes every time an administrator exports the annual report, which is needed once a year. No data is lost and the development team can produce the report with a script. What are the severity and priority?
- Who usually sets the priority of a bug in a team?
- A bug is in the Fixed status. QA checked the fix on the new build with the original steps and the defect is gone. What does QA do?
- While filing a bug, QA noticed a report in the tracker about the same problem with the same steps. What should QA do?
- Which bug title describes the problem best?
Take the quiz for this chapter · Read the explanation in the knowledge base
Processes and Agile
- What is the Definition of Done?
- How are acceptance criteria different from test cases?
- What useful things can QA bring to a retrospective?
- Who is accountable for the content and ordering of Product Backlog items in Scrum?
- What is the maximum duration of the Daily Scrum according to the Scrum Guide?
- What does the Definition of Ready (DoR) describe?
- In a Given-When-Then scenario, what does the When step describe?
- Which action best illustrates the shift-left approach?
Take the quiz for this chapter · Read the explanation in the knowledge base
Web and client-server
- The request PUT /api/profile with the same body was sent twice in a row. What is correct to say about the result?
- A user with the "Viewer" role sends DELETE /api/orders/17 with a valid token. Order 17 exists, deleting orders is supported, and the policy does not hide the existence of resources. Which response is correct if the user has no permission to delete?
- The API contract requires a non-empty items array in an order. How should this server response be assessed?
POST /api/orders HTTP/1.1
Content-Type: application/json
{"items": [], "coupon": "SAVE10"}
HTTP/1.1 422 Unprocessable Content
Content-Type: application/json
{"error": "validation_failed",
"field": "items",
"message": "must not be empty"}
- The session token is stored in a cookie. Calling document.cookie in the console does not show the token, although the browser's requests do send it. What explains this?
- A user picked a filter and the app saved it in sessionStorage. Then the user typed the address of the same page by hand in a new tab. What will the new tab show?
- The "Pay" button does not react. After the click the Network tab shows no new requests (no filters applied) and a red TypeError appeared in the Console. Where is the defect located?
- One HTML is served to all devices. On a phone the page opens as a "shrunk desktop" with tiny text, although the CSS contains media queries for narrow screens. What is the most likely cause?
- In the design the user name fits into a 200 px card, but on production long names «break» the card. Which input is most likely to reproduce the problem for this CSS?
.card {
width: 200px;
padding: 12px;
}
.card .name {
font-size: 16px;
}
Take the quiz for this chapter · Read the explanation in the knowledge base
AI in testing
- AI generated test cases for a new feature. What do you do with them?
- What must not be pasted into a public AI chat without the company's permission?
Take the quiz for this chapter · Read the explanation in the knowledge base
Situational questions
- The requirements changed after you had already tested the feature. What do you do?
- While testing you found a bug that is not related to your task. What do you do?
- The client asks to skip testing to make the release date. What do you answer?
- You have just joined a project and have no concrete tasks for the first days. What is the most useful thing to do?
- A developer returned your bug with the comment "not clear what to reproduce". What do you do?
- You consider a behaviour a bug and the developer does not. The requirements can be read in different ways and give no clear answer. What is best to do?
- All tasks are tested, there are no new ones yet and the day has just started. What useful things can QA do?
- At an interview you are asked: "Test an elevator". What is the right first step?
- The requirements say "password at least 8 characters" while the mock-up hint under the field says "at least 6 characters". 8 is implemented. What do you do?
Take the quiz for this chapter · Read the explanation in the knowledge base
SQL
All SQL interview questions
Database basics
- A student can enrol in many courses and a course has many students. How is this stored in a relational database?
- How does a UNIQUE constraint differ from a PRIMARY KEY in PostgreSQL?
- What happens on the second INSERT?
CREATE TABLE enrollments (
student_id int,
course_id int,
PRIMARY KEY (student_id, course_id)
);
INSERT INTO enrollments VALUES (1, 10);
INSERT INTO enrollments VALUES (1, 10);
- The orders table repeats the customer name and email in every row. What is the problem and what to do?
- How is a one-to-one relationship (a user and their profile) stored in a relational database?
- Which group of SQL commands does GRANT SELECT ON orders TO qa_reader belong to?
- What does the query return in PostgreSQL?
SELECT 7 / 2 AS a,
7 / 2.0 AS b,
7 % 2 AS c;
Take the quiz for this chapter · Read the explanation in the knowledge base
SELECT and filtering
- What will LIMIT 10 OFFSET 20 return?
- What does
COALESCE(phone, email, 'n/a') return? - How do you search emails case-insensitively in PostgreSQL?
- Which values does the query return? The values of name are a_b, axb, ab.
SELECT name
FROM (VALUES ('a_b'), ('axb'), ('ab')) AS t(name)
WHERE name LIKE 'a_b';
- Which values of x does the query return? The values of x are 1, 5, 10, NULL.
SELECT x
FROM (VALUES (1), (5), (10), (NULL)) AS t(x)
WHERE x BETWEEN 5 AND 10;
- How many rows does the query return? The values of x are 1, NULL, NULL, 1.
SELECT DISTINCT x
FROM (VALUES (1), (NULL), (NULL), (1)) AS t(x);
- A user has no middle name: middle_name = NULL. What does first_name || ' ' || middle_name || ' ' || last_name give in PostgreSQL?
Take the quiz for this chapter · Read the explanation in the knowledge base
Aggregation
- How is WHERE different from HAVING?
- How is COUNT(*) different from COUNT(phone)?
- In users the country column holds UA, UA, NULL, NULL, PL. How many rows does the query return?
SELECT country, COUNT(*) FROM users GROUP BY country;
- What does the query return when no row passes WHERE?
SELECT COUNT(*) AS c, SUM(x) AS s
FROM (VALUES (1), (2)) AS t(x)
WHERE x > 5;
- What does the query return? The values of x are 1, 1, NULL, 2.
SELECT COUNT(*), COUNT(x), COUNT(DISTINCT x)
FROM (VALUES (1), (1), (NULL), (2)) AS t(x);
- What happens when this query runs in PostgreSQL?
SELECT user_id, status, COUNT(*)
FROM (VALUES (1, 'new'), (1, 'paid'))
AS o(user_id, status)
GROUP BY user_id;
Take the quiz for this chapter · Read the explanation in the knowledge base
JOIN
- What will INNER JOIN of users and orders return?
- What will RIGHT JOIN of orders o with users u return?
SELECT u.email, o.id
FROM orders o
RIGHT JOIN users u ON u.id = o.user_id;
- How many rows does the query return? Table a has two rows, b has three.
SELECT COUNT(*)
FROM (VALUES (1), (2)) AS a(id)
CROSS JOIN (VALUES ('x'), ('y'), ('z')) AS b(c);
- Both users and orders have an id column. What happens when this query runs?
SELECT id, email, amount
FROM users u
JOIN orders o ON o.user_id = u.id;
Take the quiz for this chapter · Read the explanation in the knowledge base
Subqueries, CTEs, set operations
- What is a CTE?
WITH paid AS (
SELECT user_id, SUM(amount) AS total
FROM orders WHERE status = 'PAID'
GROUP BY user_id
)
SELECT u.email, p.total FROM users u JOIN paid p ON p.user_id = u.id;
- a(x) holds 1, 2, 2, 3 and b(x) holds 2, 3, 4. What does the query return?
SELECT x FROM a
EXCEPT
SELECT x FROM b;
- What happens if UNION combines SELECT id, email FROM users and SELECT id FROM orders?
Take the quiz for this chapter · Read the explanation in the knowledge base
Changing data and transactions
- How do DELETE, TRUNCATE and DROP differ?
- What happens after
UPDATE accounts SET balance = 0;? - In psql with the default autocommit you ran an UPDATE without BEGIN and then ROLLBACK. What happens to the balance?
UPDATE accounts SET balance = balance - 100 WHERE id = 1;
ROLLBACK;
- An autotest creates a user in the database and needs its id right away. What does RETURNING id do in PostgreSQL?
INSERT INTO users (email)
VALUES ('qa@test.io')
RETURNING id;
Take the quiz for this chapter · Read the explanation in the knowledge base
Database structure
- What is a foreign key?
- What is the price of an index?
- What happens to this DELETE in PostgreSQL if no ON DELETE was given when the foreign key was created?
CREATE TABLE orders (
id int PRIMARY KEY,
user_id int REFERENCES users (id)
);
-- users: id 1; orders: (10, 1), (11, 1)
DELETE FROM users WHERE id = 1;
- What happens to this migration in PostgreSQL if users already has rows?
-- users: 1000 rows
ALTER TABLE users
ADD COLUMN phone text NOT NULL;
- A tester only wants to look at the plan of a delete. What does this command do in PostgreSQL with autocommit?
-- orders: 5 million rows, autocommit
EXPLAIN ANALYZE
DELETE FROM orders
WHERE status = 'old';
Take the quiz for this chapter · Read the explanation in the knowledge base
Window functions
- What is in the prev column for the very first row by date?
SELECT day, amount,
LAG(amount) OVER (ORDER BY day) AS prev
FROM sales;
Take the quiz for this chapter · Read the explanation in the knowledge base
SQL in QA work
- The application uses soft delete through the deleted_at column. DELETE /users/5 returned 204. What should the database show?
- An autotest created a user and its orders. The cleanup DELETE FROM users WHERE email = 'qa@test.io' fails with a foreign key error. What is right?
Take the quiz for this chapter · Read the explanation in the knowledge base
Interview tasks
- You need departments where the average salary is above the company average. Which query is correct?
employees(id, department_id, salary)
- Which employees earn more than their manager?
-- employees (id, name, manager_id, salary):
-- (1,Anna,NULL,300) (2,Bohdan,1,350)
-- (3,Olha,1,250) (4,Ivan,2,360)
-- (5,Kira,2,340)
SELECT e.name
FROM employees e
JOIN employees m ON e.manager_id = m.id
WHERE e.salary > m.salary;
Take the quiz for this chapter · Read the explanation in the knowledge base
API
All API interview questions
Client-server and REST
- In the request GET /users/42, what is the resource and what is its representation?
- Why do REST addresses use nouns (/orders) rather than verbs (/getOrders)?
- What exactly does this request ask for?
GET /users/42/orders?status=paid HTTP/1.1
Host: shop.test
Accept: application/json
Take the quiz for this chapter · Read the explanation in the knowledge base
HTTP methods and idempotency
- What does it mean that an HTTP method is "safe" according to the specification?
- What is the HEAD method used for?
- A GET request cancelled an order. What is the main problem with this design?
GET /orders/17/cancel HTTP/1.1
Host: shop.test
HTTP/1.1 200 OK
Content-Type: application/json
{"id":17,"status":"cancelled"}
Take the quiz for this chapter · Read the explanation in the knowledge base
Status codes
- Which HTTP methods are idempotent according to the specification?
- Which status is expected after a successful POST that created a resource?
- How is PUT different from PATCH?
- A 200 OK response with the body {"error": "Insufficient funds"}. How do you assess it?
- What does 204 No Content mean?
Take the quiz for this chapter · Read the explanation in the knowledge base
Postman: structure and variables
- What is an Environment for in Postman?
- How does a Postman monitor differ from a Newman run in CI?
Take the quiz for this chapter · Read the explanation in the knowledge base
Authentication and authorization
- How is 401 different from 403?
- Is the content of a JWT of the form xxxxx.yyyyy.zzzzz (three parts separated by dots) encrypted?
- Below is the decoded payload of a JWT from the Authorization: Bearer header, the signature is valid. The server handles the request at the moment 1700001800 (Unix time, seconds). Which response is expected?
{
"sub": "42",
"role": "user",
"iat": 1700000000,
"exp": 1700000900
}
Take the quiz for this chapter · Read the explanation in the knowledge base
Scripts and checks in Postman
- Where in Postman does code run before the request is sent and where after the response arrives?
Take the quiz for this chapter · Read the explanation in the knowledge base
Runner, data-driven tests and Newman
- What does the Collection Runner do in Postman?
Take the quiz for this chapter · Read the explanation in the knowledge base
Checklist: what to test in an endpoint
- Which three authentication and authorization scenarios are checked for a protected endpoint?
- The documentation says DELETE removes the order permanently. After the DELETE response the test does a GET. What is the conclusion?
DELETE /orders/17 HTTP/1.1
HTTP/1.1 204 No Content
GET /orders/17 HTTP/1.1
HTTP/1.1 200 OK
{"id": 17, "status": "active"}
Take the quiz for this chapter · Read the explanation in the knowledge base
API design: resources, pagination, versioning, GraphQL
- The request GET /users/42?active=true. Which is the path parameter and which is the query?
- What does it mean that HTTP is stateless?
- Why version an API, for example
/v1/?
Take the quiz for this chapter · Read the explanation in the knowledge base
Headers, caching and CORS
- The browser received this response to GET /accounts/42 and stored it in its own cache. 30 seconds later the page code calls the same GET again. What happens?
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: max-age=60
ETag: "v7"
{"balance":1520.50}
Take the quiz for this chapter · Read the explanation in the knowledge base
API security
- The API uses HTTPS. What is wrong with how this request authenticates?
GET /v1/reports/export?api_key=sk_live_51Hx9 HTTP/1.1
Host: api.shop.test
Take the quiz for this chapter · Read the explanation in the knowledge base
Documentation and contracts: OpenAPI, JSON Schema, contract testing
- What does Newman do?
- The response schema of GET /users/{id} is below. The server returned {"id": 5, "email": "a@b.co", "passwordHash": "x9"}. What will validation against the schema show?
{
"type": "object",
"required": ["id", "email"],
"properties": {
"id": { "type": "integer" },
"email": { "type": "string" }
},
"additionalProperties": false
}
Take the quiz for this chapter · Read the explanation in the knowledge base
Performance and reliability
- Which tools are used for load testing an API?
Take the quiz for this chapter · Read the explanation in the knowledge base
gRPC
- Which transport and message format does gRPC use by default?
- When is gRPC usually a better choice than REST?
Take the quiz for this chapter · Read the explanation in the knowledge base
Test design for APIs
- The quantity field in POST /orders is described as below. Which values cover boundary analysis: each boundary and the nearest invalid value beyond it?
{
"quantity": { "type": "integer", "minimum": 1, "maximum": 100 }
}
- The specification says age has the type integer. A test sends the request below. What does this response show?
POST /users HTTP/1.1
Content-Type: application/json
{"email": "a@b.co", "age": "30"}
HTTP/1.1 201 Created
{"id": 12, "email": "a@b.co", "age": 30}
- Why is a field's value space split into equivalence classes in API test design?
- How do an absent field, a field with null and an empty string differ in test design?
Take the quiz for this chapter · Read the explanation in the knowledge base
System Design
All System Design interview questions
How to answer a System Design interview
- The interviewer gives the task "design a test framework". Where is it best for the candidate to start?
Take the quiz for this chapter · Read the explanation in the knowledge base
Test framework architecture
- Why move locators and page actions into a Page Object?
Take the quiz for this chapter · Read the explanation in the knowledge base
Test data and environments
- Why shouldn't a test be built on data created by another test?
Take the quiz for this chapter · Read the explanation in the knowledge base
CI/CD, parallelization and sharding
- What does the
--shard=2/4 flag do in Playwright? - What is a quality gate in CI/CD?
Take the quiz for this chapter · Read the explanation in the knowledge base
Stability and flaky tests
- Which test is called flaky?
Take the quiz for this chapter · Read the explanation in the knowledge base
Backend basics: LB, cache, DB, queues
- What is the main job of a load balancer?
- What is a DLQ (dead letter queue) for?
Take the quiz for this chapter · Read the explanation in the knowledge base
Microservices and test strategy
- What does a contract test between two services verify?
Take the quiz for this chapter · Read the explanation in the knowledge base
Scaling and reliability
- What response does an API usually return when a client exceeds the rate limit?
- Which type of load test looks for memory and connection leaks?
Take the quiz for this chapter · Read the explanation in the knowledge base
Patterns
All Patterns interview questions
Page Object Model
- What main problem does the Page Object Model solve?
Take the quiz for this chapter · Read the explanation in the knowledge base
Page Component and composition
- What does a Page Component usually take in its constructor?
Take the quiz for this chapter · Read the explanation in the knowledge base
Builder and Test Data Builder
- What is the main idea of a Test Data Builder?
Take the quiz for this chapter · Read the explanation in the knowledge base
Factory and data factories
- Why is
Partial used in the factory createCard(overrides: Partial<Card> = {})?
Take the quiz for this chapter · Read the explanation in the knowledge base
Strategy
- What does the Strategy pattern describe?
Take the quiz for this chapter · Read the explanation in the knowledge base
SOLID, DRY, KISS in tests, and anti-patterns
- What does the DAMP principle mean for tests?
- Which Page Object method violates Single Responsibility?
Take the quiz for this chapter · Read the explanation in the knowledge base
CI/CD
All CI/CD interview questions
Pipeline and quality gates
- What feedback time should you aim for with the required checks on a pull request?
- Why are lint and unit tests placed before e2e in a pipeline?
Take the quiz for this chapter · Read the explanation in the knowledge base
GitHub Actions for a test framework
- What is the difference between a workflow, a job and a step in GitHub Actions?
Take the quiz for this chapter · Read the explanation in the knowledge base
Docker for automated tests
- How is an image different from a container?
- What does -p 8080:80 mean in docker run?
- How is a Dockerfile different from docker-compose.yml?
- How do you see what the application in a container has printed?
- How do you run a command inside a running container, for example to open psql?
- Why is the
latest tag a poor fit for a test environment?
Take the quiz for this chapter · Read the explanation in the knowledge base
CI reports, artifacts and metrics
- Why is a JUnit XML usually generated in CI when an HTML report already exists?
- Which artifact helps most to find out why a UI test failed in CI?
Take the quiz for this chapter · Read the explanation in the knowledge base
Product Engineering
All Product Engineering interview questions
Product thinking for QA
- A feature fully matches the specification, but in a usability session users cannot complete the task. What does QA do?
- In a Given / When / Then scenario, what does the When part describe?
- A user writes: "Please add PDF export for the report". The spec says nothing about it. How do you classify it?
- What does the letter T in INVEST for a user story stand for?
Take the quiz for this chapter · Read the explanation in the knowledge base
Product metrics and analytics
- An app has a DAU/MAU of 0.2. What does it mean?
- A funnel: 1000 viewed a product, 200 added to the cart, 50 bought. What is the conversion from cart to purchase?
Take the quiz for this chapter · Read the explanation in the knowledge base
A/B tests and feature flags
- What are control and variant in an A/B test?
Take the quiz for this chapter · Read the explanation in the knowledge base
Safe releases and production feedback
- What is the essence of a canary release?
- What is the idea of a blue-green deployment?
Take the quiz for this chapter · Read the explanation in the knowledge base
An agent in the development cycle
- Which task is best to hand to a coding agent first?
Take the quiz for this chapter · Read the explanation in the knowledge base
Context, rules, skills
- What is an instruction file such as AGENTS.md in a repository for?
Take the quiz for this chapter · Read the explanation in the knowledge base
Orchestrating agents
- Why hand the exploration of a large codebase to a subagent?
Take the quiz for this chapter · Read the explanation in the knowledge base
AI
All AI interview questions
LLM basics: tokens, context, model
- What is a token in the context of an LLM?
- What counts toward the context window of a model?
- A chatbot "remembers" the start of the conversation. How does this work at the API level?
- What does the temperature parameter do?
- What does the cost of a single LLM API request depend on?
Take the quiz for this chapter · Read the explanation in the knowledge base
Prompts, RAG, tools, agents, MCP
- What is the difference between a system and a user message in a chat model?
- What is RAG?
- Who actually executes the tool when tool calling is used?
- How does an agent differ from a regular chatbot?
- What is MCP (Model Context Protocol) for?
Take the quiz for this chapter · Read the explanation in the knowledge base
How to test an LLM agent
- Why is a regular string-equality assert a poor fit for LLM answers?
- What is a golden dataset in the evaluation of an LLM system?
Take the quiz for this chapter · Read the explanation in the knowledge base
Safety, quality and metrics
- What is prompt injection?
- What is an LLM hallucination?
Take the quiz for this chapter · Read the explanation in the knowledge base
Testing AI features in a product
- A feature summarises customer emails. Which acceptance criterion correctly reflects non-deterministic output?
Take the quiz for this chapter · Read the explanation in the knowledge base
Networking
All Networking interview questions
TCP/IP and the path of a request
- A test throws ECONNREFUSED on localhost:3000. What does it mean?
- How does TCP differ from UDP?
- Which DNS record sets an alias: a name that points to another name rather than to an IP?
- In what order do the steps happen when a user types https://shop.example.com in a new tab?
- Which ports do HTTP and HTTPS use by default?
- What does a DNS record of type AAAA define?
Take the quiz for this chapter · Read the explanation in the knowledge base
HTTP versions and infrastructure
- Why does HTTP/1.1 use keep-alive (persistent connections)?
Take the quiz for this chapter · Read the explanation in the knowledge base
WebSocket, SSE and real-time
- Which response code does the server return for a successful WebSocket handshake over HTTP/1.1?
Take the quiz for this chapter · Read the explanation in the knowledge base
Networking in QA work
- What does curl -v show that plain curl does not?
- A test inside a Docker container calls http://localhost:8080, where the API runs on the host, and gets ECONNREFUSED. Why?
Take the quiz for this chapter · Read the explanation in the knowledge base
Logs and observability
All Logs and observability interview questions
Logs for a QA
- Which log level fits the message "retrying the payment gateway call, attempt 2 of 3"?
- Production runs at INFO level. A developer says they log a variable value at DEBUG, but it is not in the logs. Why?
- In DevTools → Network the checkout request returned 500 and the UI showed "Something went wrong". Where is the cause most likely?
- Which of these is the least useful in a bug report for investigating with logs?
Take the quiz for this chapter · Read the explanation in the knowledge base
Observability: logs, metrics, traces
- What is the difference between metrics and logs?
Take the quiz for this chapter · Read the explanation in the knowledge base
Logs in automation
- Which of these must a developer NOT write to logs?
Take the quiz for this chapter · Read the explanation in the knowledge base
Selenium + Java
All Selenium + Java interview questions
WebDriver: architecture and drivers
- What is Selenium WebDriver?
- What role does chromedriver play when a test runs?
- What is the difference between driver.close() and driver.quit()?
Take the quiz for this chapter · Read the explanation in the knowledge base
Locators and waits
- Developers added data-testid="pay" to a button. Which locator is the most stable?
- What happens if you call driver.findElements(By.id("error")) and there is no such element on the page?
- When is XPath a better choice than a CSS selector?
- How does an explicit wait differ from an implicit wait?
Take the quiz for this chapter · Read the explanation in the knowledge base
Page Object
- What is the main benefit of Page Object?
- Where do Selenium recommendations place assertions?
Take the quiz for this chapter · Read the explanation in the knowledge base
Framework and runs
- What is the JUnit 5 equivalent of the TestNG annotation @BeforeMethod?
Take the quiz for this chapter · Read the explanation in the knowledge base
Stability and debugging
- Why is Thread.sleep(5000) after a click a bad waiting practice?
Take the quiz for this chapter · Read the explanation in the knowledge base
Java Core
All Java Core interview questions
The language for tests
- What does this code print?
String a = "qa";
String b = new String("qa");
System.out.println(a == b);
System.out.println(a.equals(b));
- A test builds a large report string in a loop of many thousands of iterations. What is more appropriate?
- What is the advantage of enum Environment { DEV, STAGING, PROD } over the string "staging" in test configuration?
Take the quiz for this chapter · Read the explanation in the knowledge base
OOP in a framework
- What is appropriate to move into a BaseTest base class?
- Why are locators in a page class usually private and actions public?
Take the quiz for this chapter · Read the explanation in the knowledge base
Collections and test data
- What happens when this code runs?
List<String> browsers = List.of("chrome", "firefox");
browsers.add("edge");
- A test needs to quickly get a ready test user by the role "admin" or "guest". Which structure fits?
Take the quiz for this chapter · Read the explanation in the knowledge base
Exceptions
- Which of these exceptions is checked, meaning the compiler forces you to handle or declare it?
- Why is this block dangerous in a test?
try {
client.deleteUser(id);
} catch (Exception e) {
// ignore
}
Take the quiz for this chapter · Read the explanation in the knowledge base
Lambdas and the Stream API
- Which functional interface does the filter method of a Stream expect?
- What will titles contain?
List<String> titles = rows.stream()
.map(WebElement::getText)
.filter(t -> !t.isBlank())
.toList();
Take the quiz for this chapter · Read the explanation in the knowledge base
Parallelism
- What is a race condition in parallel tests?
Take the quiz for this chapter · Read the explanation in the knowledge base
Assertions and API tests
- Which form of assertion is correct in AssertJ?
- In a REST Assured given() ... when() ... then() chain, where are the method and path of the request set?
Take the quiz for this chapter · Read the explanation in the knowledge base
The test project
- What does <scope>test</scope> mean for a dependency in pom.xml?
- Which command runs only the single test class LoginTest?
Take the quiz for this chapter · Read the explanation in the knowledge base
Performance Testing
All Performance Testing interview questions
Types of performance testing
- What does load testing check?
- What is the goal of stress testing?
- An online shop starts a sale at 12:00 and traffic grows tenfold within a minute. Which test best covers this scenario?
- After 12 hours of steady load the response time slowly grows and the server memory use never goes down. Which test type reveals such problems?
- How do the terms performance testing and load testing relate?
- When is it wisest to start testing performance?
- A team wants to know how many concurrent users the system holds within the SLA, to plan how many servers to run. Which test type fits?
Take the quiz for this chapter · Read the explanation in the knowledge base
Metrics
- In the usual definition, how does response time differ from latency?
- What is throughput in a performance test?
- A test showed a mean response time of 200 ms and p99 = 4 s. What does this mean?
- What does a result of p95 = 800 ms mean?
- Why should response time not be judged separately from the error rate?
Take the quiz for this chapter · Read the explanation in the knowledge base
Test design
- What is a workload model (load profile) in a performance test?
- Why is ramp-up used in a test?
- A load test should simulate real site users, but the script sends requests one after another with no pauses between actions. What problem does this cause?
- Why does a performance test on a stage with an empty database give unreliable results for production?
- What is a baseline in performance testing?
- What should the pass criterion of a performance test be?
Take the quiz for this chapter · Read the explanation in the knowledge base
Tools and analysis
- What is configured in a Thread Group in Apache JMeter?
- What is the right way to run a large load test in JMeter 5.x?
- A k6 script is started with k6 run script.js. The abortOnFail option is not set. What happens if p(95) of http_req_duration exceeds 500 ms?
export const options = {
vus: 50,
duration: '5m',
thresholds: {
http_req_duration: ['p(95)<500'],
http_req_failed: ['rate<0.01'],
},
};
Take the quiz for this chapter · Read the explanation in the knowledge base
Appium
All Appium interview questions
Appium architecture
- What is Appium?
- In Appium 2, how does a Java test on a computer control an app on a device?
- Do you need to modify or recompile an app to test it through Appium?
- After npm install -g appium (Appium 2) the session fails with "Could not find a driver for automationName UiAutomator2 and platformName Android". What to do?
- In the session JSON the field looks like appium:deviceName. Why is there a prefix and who adds it in this Java code?
UiAutomator2Options options = new UiAutomator2Options()
.setDeviceName("Pixel_7")
.setApp("/builds/app-debug.apk");
- The tests never call driver.quit(). What happens to the sessions on the Appium server?
Take the quiz for this chapter · Read the explanation in the knowledge base
Locators and waits
- A native app has the same screens on Android and iOS, and developers are ready to add identifiers. Which locator should you pick first?
- Which native element attributes does AppiumBy.accessibilityId correspond to?
- Which attribute of an Android element does this locator search (UiAutomator2)?
driver.findElement(AppiumBy.id("com.example.shop:id/login_button"));
- Why are XPath locators on mobile (UiAutomator2, XCUITest) considered the last resort?
- What is Appium Inspector used for?
- The Home screen loads in 1 to 8 seconds depending on the API. How do you reliably wait for the title?
driver.findElement(AppiumBy.accessibilityId("login")).click();
Thread.sleep(5000);
String title = driver.findElement(AppiumBy.accessibilityId("home_title")).getText();
Take the quiz for this chapter · Read the explanation in the knowledge base
Mobile specifics
- A test opens a site in Chrome on an Android emulator, and there is no .apk. What do you set instead of appium:app?
- A hybrid app opened a WebView and the CSS locator throws NoSuchElementException although the field is visible. What is the most likely cause?
driver.findElement(AppiumBy.accessibilityId("Open site")).click();
driver.findElement(By.cssSelector("#email")).sendKeys("a@b.c");
- On first launch an Android app shows a system camera permission dialog and the test gets stuck. Which UiAutomator2 capability solves this without clicks in the test?
- What does this call do and why is it used in tests?
driver.runAppInBackground(Duration.ofSeconds(5));
Take the quiz for this chapter · Read the explanation in the knowledge base
Running and stability
- A team chooses between Android emulators and real devices. What are real devices still needed for?
- A team wants to run Appium iOS tests on simulators in its own CI. Which requirement cannot be avoided?
- Why does a team use a real device cloud (BrowserStack, Sauce Labs) instead of its own fleet?
- What does appium:noReset = true mean?
Take the quiz for this chapter · Read the explanation in the knowledge base
ISTQB CTFL 4.0
All ISTQB CTFL 4.0 interview questions
Fundamentals of Testing
- Which of these is a typical objective of testing?
- Which check does the term “validation” describe, as opposed to “verification”?
- A test triggered a failure. Which sequence of actions is debugging?
- A review found a contradiction between two items of a specification. What is true about debugging this defect?
- Before every release the team reports open defects and the risk level to a manager, who decides whether to postpone the release. Which contribution of testing does this illustrate?
- A project cannot keep a representative group of users involved: it is costly and suitable people are scarce. Which contribution of testing makes up for this?
- Which statement about the relation between testing and quality assurance (QA) is correct?
- Who on a project is responsible for quality assurance (QA) as a process approach?
- Requirement: the discount applies from a total of 100 inclusive. In a hurry, a developer wrote the condition below, and an order of exactly 100 gets no discount. What is the defect here?
if (total > 100) {
discount = 10;
}
- The specification asks for a password of at least 6 characters, though the security policy requires 8. The implementation follows the specification, so weak passwords are accepted. Analysis showed that the analyst had no access to the policy. What is the root cause here?
- Does every defect that exists in a product necessarily lead to a failure?
- All 500 automated tests passed, and a manager declared that the product has no defects. Which testing principle does this conclusion contradict?
- A team has been running an unchanged set of tests for months. Fewer and fewer defects are found, yet users report problems in scenarios the set does not touch. Which principle does this illustrate?
- A team tested every requirement and fixed every defect found, yet users do not use the product: it does not solve their problem. Which principle does this illustrate?
- Which task belongs to test design?
- An iteration has ended. The team archives useful testware, collects lessons learned and prepares a report for stakeholders. Which activity is this?
- A test lead gathered daily execution metrics, compared progress with the plan, spotted a delay and reassigned people between tasks. Which of these is test control?
- One team tests software for medical infusion pumps with regulatory requirements, another tests an internal demo prototype. How will context affect their test processes?
- A project moves from releases twice a year to daily releases with CI/CD. What in the test process will change first because of this contextual factor?
- Which is a work product of test analysis?
- Which belongs to the results of test implementation?
- Requirement REQ-12 has changed. The team has links between requirements, test cases and results. What benefit does this give?
- A manager asks whether all requirements are covered by tests and what residual risk remains in the product. What does traceability offer here?
- Which list of activities matches the test management role?
- An Agile team has no separate test manager: a tester and the team lead plan testing and track progress together. What does this mean?
- A tester found a defect and must report it to the developer without causing offence. Which skills matter most here, and why?
- A tester on an insurance project does not understand the analysts’ terms and cannot discuss the expected behaviour with them. Which skill does the tester lack most?
- What is the whole team approach?
- What is an advantage of the whole team approach?
- What is the main benefit of independent testing?
- Which drawback can independent testing have?
Take the quiz for this chapter
Testing Throughout the Software Development Lifecycle
- A project follows a sequential model (V-model). The requirements are still being written and agreed, and there is no code yet. What can testers usefully do right now?
- An agile team works in two-week iterations and each one delivers a working product increment. Requirements change often. Which approach to testing fits best here?
- Which testing practice counts as good regardless of the chosen lifecycle model?
- According to good testing practices, when should testers get involved in reviewing a work product such as a specification?
- A team describes a feature’s behavior as Given/When/Then scenarios, and the scenario steps are automatically bound to code and run as tests. Which approach is this?
- Which sequence of steps is characteristic of test-driven development (TDD)?
- A team moved to a DevOps pipeline where automated regression tests run after every commit. Which benefit for testing does this give?
- A manager proposes adopting DevOps and asks what extra work and difficulties to expect for testing. What is the right answer?
- What does “shift left” mean in testing?
- Which of these practices is an example of shift left?
- At the end of an iteration the team (testers, developers, product owner) discusses what was successful, what was not and how to improve. What is true about such a meeting?
- A team holds retrospectives regularly and collects suggestions about testing, yet test effectiveness does not improve. It turns out that no suggestion was ever implemented. Which requirement for retrospectives was broken?
- An online shop checks the interface between its own system and an external payment service in an environment similar to production. Which test level is this?
- In their own environment a developer checks a single class in isolation from the rest of the system using a unit test framework. Which level is this and why?
- Which statement about acceptance testing is correct?
- A test runs a catalog search and checks that the result is returned within two seconds. Which test type does it belong to, judging by its objective?
- A tester derives tests from the code structure and data flows, aiming to cover that structure with tests to an acceptable level. Which test type is this?
- Which statement about the relation between test types and test levels is correct?
- A defect in the discount calculation was fixed. The tester repeats the test that failed because of it, and then runs a set of previously passing tests for checkout and invoicing. What are these two actions called, in order?
- Which statement about regression testing and confirmation testing is correct?
- A running application with no functional changes is moved to another platform, and data is migrated from an old store. What does maintenance testing cover in this case?
- A defect in a large production system is fixed with a change of a few lines. What does the scope of the maintenance testing mainly depend on?
Take the quiz for this chapter
Static Testing
- Which work product is NOT suitable for static testing?
- What is required before a tool-based static analysis can be applied to a work product?
- A team reviews requirements at the start of a project even though it takes time. Which argument explains the benefit best?
- Besides finding defects, what further benefit comes from involving varied stakeholders in a requirements review?
- What is the difference in how static and dynamic testing lead to a defect?
- Which quality characteristic is better measured by dynamic rather than static testing?
- A module has a branch that runs only on a rare failure of a third-party service. No test managed to trigger it. What is true here?
- What is a benefit of early and frequent stakeholder feedback throughout the lifecycle?
- What can happen if stakeholders are barely involved during the development lifecycle?
- In what order do the activities of the review process come?
- After individual review the reviewers logged ten anomalies. What happens next, in the communication and analysis activity?
- Which review role is described by “runs the review meeting: keeps time, settles disputes and makes sure every participant can speak up without fear”?
- Which role chooses the object of a review and supplies the people and time for it?
- Which review type follows no defined process, needs no formally documented output, and has detecting anomalies as its main objective?
- What distinguishes an inspection from the other review types?
- An author runs a meeting for the team to explain a new design document, to educate colleagues and gather ideas. Individual preparation by reviewers is not required. Which review type is this?
- Which of these factors contributes to the success of reviews?
- Why is it recommended to review the work product in small chunks?
Take the quiz for this chapter
Test Analysis and Design
- A tester builds tests from the control flow graph of a function a developer has just written. Which group does this technique belong to?
- A team decided to write tests before the module is implemented, from the specification alone. Which statement about such tests is correct?
- Why are experience-based techniques seen as a complement to black-box and white-box techniques rather than a replacement?
- Lines 4 and 7 contain only a closing brace, every other line is one executable statement. One test was run: qty = 20, isMember = false. What statement coverage was reached?
1 total = qty * price
2 if (qty > 10) {
3 total = total * 0.9
4 }
5 if (isMember) {
6 total = total - 5
7 }
8 return total
- A test suite reached 100% statement coverage and a manager claims the code is “fully tested”. Which statement is justified?
- One test with isMember = true gives 100% statement coverage of the code below. What is the smallest total number of tests needed for 100% branch coverage?
1 discount = 0
2 if (isMember) {
3 discount = 10
4 }
5 return price - discount
- A report says a test suite reached 100% branch coverage. What follows from this for certain?
- The requirement “send an email after an order is cancelled” was forgotten, and the code has no such logic. Why might white-box testing fail to reveal this?
- A team runs only black-box tests. Which argument best justifies adding code coverage measurement?
- What does error guessing describe?
- A tester wants to run a fault attack. What does this approach need as its basis?
- A new feature with almost no specification must ship tomorrow and time is short. An experienced tester with domain knowledge has joined the team. Which approach fits best?
- A tester plans an exploratory session using the session-based approach. What matches this approach?
- A team is writing a checklist for testing a registration form. Which item fits best?
- A checklist for a payment module has been used for two years. Its field validation items have long found nothing, and high-severity defects in fee calculation were recently found in production. What should be done with the checklist?
- A product owner wrote a story on a card. The team discussed how it will be used and recorded the conditions under which the customer will accept it. Which of the “3 C’s” do these conditions correspond to?
- A business representative cannot say how to check the finished story. What may this indicate, according to the syllabus?
- An acceptance criterion is written as: “Given a cart with a total of 120, when the customer pays by card, then free shipping is applied”. Which format does it belong to?
- Which statement about acceptance criteria formats is correct?
Take the quiz for this chapter
Managing the Test Activities
- What does the content of a test plan typically include?
- A new manager asks why time should go into a test plan that will change anyway. Which answer describes its purpose?
- In which activity does a tester add value during release planning?
- Which of the following does a tester do specifically in iteration planning?
- Which of these is an entry criterion rather than an exit criterion of system testing?
- An Agile team requires a story to have acceptance criteria and a clear test basis before it is taken into development and testing. What is this called, and what is it?
- According to the test pyramid model, which tests are needed in the greatest number for reasonable coverage?
- What happens to tests when moving from the bottom layer of the pyramid to the top?
- In which quadrant of the testing quadrants model are exploratory testing, usability testing and user acceptance testing placed?
- A team plans performance and security testing, largely automated. Where do they sit on the testing quadrants diagram?
- Which two factors make up the risk level?
- In the quantitative approach risk level = likelihood × impact. Risk X: likelihood 0.3, impact 8; Y: 0.6 and 3; Z: 0.1 and 10 (impact scale 1–10). Which risk has the highest level?
- Which of these risk register entries is a product risk?
- A register entry reads: “Two experienced testers will be on leave during the release, and the rest of the team lacks performance testing skills”. What kind of risk is it and what does it affect first?
- A register has two entries: (1) “Slow response under peak load”, (2) “The vendor of the payment sandbox may go bankrupt”. How should they be classified?
- Risk analysis of an online banking release showed that the money transfer module has high likelihood and high impact, while changing the user avatar has low ones. How should the analysis result affect testing?
- During risk analysis the team assessed the security risk of the login module as high. Which decision follows from this analysis?
- The risk of wrong tax calculation was assessed as high. Which of these risk responses is mitigation?
- Each iteration the team checks whether the mitigation actions for the payment feature really reduced its risk, and records new risks that have appeared. What activity is this?
- Which metric is a defect metric?
- A manager wants to know the current quality of the test object, not the progress of the test team. Which metric is appropriate?
- What does a test completion report typically contain that a daily progress report does not?
- How does reporting in a stable Scrum team differ from reporting at the end of a test level?
- A team is spread over three time zones with almost no shared working hours. How is it appropriate to communicate the test status?
- A small self-organizing Agile team sits in one room and has a shared task board and a daily meeting. Which way of communicating test status suits it?
- A test failed on Tuesday’s build, but a week later nobody can reproduce it: the scripts and test data have been overwritten. Which configuration management practice would have helped?
- An auditor asks which version of the test cases, run on which build, produced a result in an old report. What in configuration management makes this possible?
Take the quiz for this chapter
Test Tools
- A team needs a tool that links requirements, tests and defects and helps manage versions and configuration. Which group does it belong to?
- You need to check how a system behaves when 10,000 virtual users work at once. By hand this is impossible. Which group of tools supports it?
- Which of these is a risk of test automation?
- What is a potential benefit of test automation?
Take the quiz for this chapter
Penetration Testing
All Penetration Testing interview questions
Pentest basics
- How does a penetration test differ from a vulnerability scan?
- What distinguishes a red team exercise from an ordinary pentest?
- A tester was given two test accounts of different roles and API documentation, but no source code. Which approach is it?
- What is mandatory before a pentest starts?
- During an authorized test a vulnerable host is found that is not in the scope but belongs to the same client. The client contact has no authority to change the written scope verbally. What should you do?
- Which sequence of phases of a typical pentest is correct?
- What is STRIDE?
- The CEO signed a contract for a web application pentest. The list of targets includes a server running in the cloud account of the company’s partner. What do you do before the test starts?
- You start the Juice Shop training application on your laptop with the command below. What does the 127.0.0.1: part of the port mapping do?
docker run --rm -p 127.0.0.1:3000:3000 bkimminich/juice-shop
Take the quiz for this chapter · Read the explanation in the knowledge base
How the web works for a pentester: HTTP, cookies, sessions
- The interface does not allow entering a negative quantity, but the server accepts a request with qty: -1 edited in Repeater and creates the order. What does it mean for security?
- Which parts of an HTTP request does the sender control?
- What does a tester need a proxy such as Burp Suite or ZAP for?
- Which cookie attribute stops JavaScript on the page from reading its value?
- A user logged out. The old cookie, replayed in curl, again returns 200 with their data. What is broken?
GET /api/profile HTTP/1.1
Host: shop.example
Cookie: sid=q8Zk3x... (copied before logout)
- Which of these addresses share the origin of https://shop.example/cart?
Take the quiz for this chapter · Read the explanation in the knowledge base
Recon and attack surface mapping
- Which of these actions is passive reconnaissance?
- Why is reconnaissance usually started with the passive part?
- What does the presence of a host name in the crt.sh output confirm?
- robots.txt contains the line Disallow: /admin-old/. What does it mean for a tester?
- What is part of a web application’s attack surface?
Take the quiz for this chapter · Read the explanation in the knowledge base
Web vulnerabilities: OWASP Top 10:2025
- Which category is first in the OWASP Top 10:2025?
- An ordinary user who has no "Admin" menu item manually opens /admin/users and sees the user list. Which escalation is this?
- A search query is built by string concatenation, without parameterization. A value with a single quote and a comment is entered in the search field. What will this query return in a database where -- starts a comment?
const term = "' OR 1=1-- ";
const sql = "SELECT * FROM products WHERE name = '" + term + "'";
- A comment <script>alert(1)</script> is saved in the database and runs in the browser of everyone who opens the page. Which type of XSS is this?
Take the quiz for this chapter · Read the explanation in the knowledge base
Authentication: passwords, MFA, sessions, JWT
- What is password spraying?
- The login answers “user not found” for a non-existent e-mail and “wrong password” for an existing one. What is the problem?
POST /login {"email":"nobody@shop.example","password":"x"}
HTTP/1.1 401 {"error":"user not found"}
POST /login {"email":"anna@shop.example","password":"x"}
HTTP/1.1 401 {"error":"wrong password"}
- According to 23andMe, what caused the access to about 14,000 accounts that the company disclosed in 2023?
- Why must secret data not be put in a JWT payload?
Take the quiz for this chapter · Read the explanation in the knowledge base
Access control: IDOR, escalation, mass assignment
- Alice sends a request with her own token for an order that belongs to Bob and gets 200 with Bob’s data. What flaw is this?
GET /api/orders/1002 HTTP/1.1
Authorization: Bearer <token-alice>
200 {"id":1002,"owner":"bob"}
- Which fix removes IDOR in the GET /orders/{id} handler?
- Why does an ordinary vulnerability scanner usually not find IDOR?
Take the quiz for this chapter · Read the explanation in the knowledge base
Injections: SQL, commands, templates
- In an authorized test a single quote in the search field leads to a page with a database "syntax error". What does it mean?
- What is the primary defence against SQL injection?
Take the quiz for this chapter · Read the explanation in the knowledge base
Client side: XSS, CSRF, CORS, clickjacking
- A team believes HttpOnly on the session cookie and HTTPS eliminate XSS. What is right?
- Why did the Samy worm of 2005 spread to over a million MySpace profiles in about 20 hours?
Take the quiz for this chapter · Read the explanation in the knowledge base
Tools and automation
- Which Burp Suite module is used to manually change an intercepted request and send it again many times?
- A team wants to run ZAP checks in CI on every pull request without active attacks on the test environment. What fits?
- What does this command do in an authorized test?
nmap -sV -p 1-1000 staging.example.com
- How does SAST differ from DAST?
- What is a template in Nuclei?
Take the quiz for this chapter · Read the explanation in the knowledge base
Risk scoring and reporting
- What does a CVSS Base score of 9.8 mean?
- How does a CVE differ from a CWE?
- What should a finding description contain so that a developer can fix it without extra questions?
- Who is the executive summary section of a pentest report for?
- Where is the security.txt file placed under RFC 9116 and what is it for?
Take the quiz for this chapter · Read the explanation in the knowledge base
Pentest in 2026: AI, LLM, continuous
- Why is one pentest a year not enough for an application released daily?
- What are AI pentest tools most reliable for as of 2026?
- Why should an SPA pentest test the API directly rather than only through the interface?
- An attacker knows a victim’s password and sends MFA push requests until the user taps "Approve" by accident. The requirement is to remove push fatigue and also resist real-time (proxy) phishing at the same time. Which solution is best?
- A critical CVE is announced in a popular library and you have an up-to-date SBOM covering all your services including transitive dependencies. What is your first step?
Take the quiz for this chapter · Read the explanation in the knowledge base
AI-driven Automation
All AI-driven Automation interview questions
Agentic automation: basics
- How does a testing agent differ from an autocomplete assistant?
- Which scenario is agentic behaviour rather than a plain suggestion?
- A team asks an agent for a first draft of a test plan for a new feature from its description. What is the right next step?
- Which of these does an agent usually do well and cheaply, if a person later checks its result?
Take the quiz for this chapter · Read the explanation in the knowledge base
Configuring an agent
- What is AGENTS.md?
- What is appropriate to put into the AGENTS.md of a test automation project?
- What is MCP (Model Context Protocol)?
- To stop the agent asking permission every time, they want to allow any terminal commands. Which configuration is wiser?
Take the quiz for this chapter · Read the explanation in the knowledge base
Test agents: planner, generator, healer
- Which three agents make up Playwright Test Agents?
- The planner produced specs/checkout.md with checkout scenarios. What does QA do before generating tests?
- Which command sets up Playwright Test Agents in a project for Claude Code?
- What does the healer do with a failed test?
Take the quiz for this chapter · Read the explanation in the knowledge base
Validating an agent’s output
- An agent generated a test that is supposed to check the cart total. What is its main problem?
test('cart total', async ({ page }) => {
await page.goto('/cart');
const total = await page.locator('.total').textContent();
expect(total).toBeDefined();
});
- An agent reports: "added 12 tests, all pass". What to do first?
- The project is on the latest Playwright. In a generated test an agent calls await expect(page).toBeFullyLoaded(), and the test fails with a TypeError. What kind of problem is this and what to do?
test('page is ready', async ({ page }) => {
await page.goto('/dashboard');
await expect(page).toBeFullyLoaded();
});
- Which form of evidence that an agent really checked a scenario in a browser is the most reliable?
Take the quiz for this chapter · Read the explanation in the knowledge base
Agents in the team and CI
- A team connects an agent to CI for the first time. Which mode is safer for a start?
- What is prompt injection for a tester agent?
- Which token is worth giving a CI agent to comment on PRs?
- Which metric better shows the value of an agent for the QA process?
Take the quiz for this chapter · Read the explanation in the knowledge base