QA interview questions & answers.
These are the QA questions interviewers ask most, each with a model answer. There are 200+ of them across behavioral, test automation, API testing, performance, CI/CD and QA methodology. Filter by category and by level, from junior to principal. Read them free, or practice them live in a mock interview.
A test passes locally but fails in CI about one run in five. Walk me through what you check first, and why.
This single answer is scored on four dimensions: Technical accuracy · Coverage · Clarity · Best practices.
Free to start · 7-day trial on paid plans
All Questions
Filter by category, difficulty level, or search for specific topics.
Showing 207 questions · 10 free answers remaining
A strong answer describes the specific situation, the severity assessment you performed, how you communicated the risk to stakeholders, and the trade-off decision (delay vs. ship with known risk). Mention how you provided data, reproduction steps, blast radius, affected users - so the team could make an informed call. End with what you learned about earlier detection.
Practice this question on its own pageTry a scored practice question, freeGreat answers show diplomacy and data-driven resolution. Reference the requirements/acceptance criteria as the shared source of truth. Explain how you presented evidence (screenshots, logs, spec references) rather than opinions. Mention involving the PM if needed, and how you maintained a collaborative relationship with the developer afterward.
Practice this question on its own pageTry a scored practice question, freeDiscuss risk-based testing, prioritize areas with highest user impact, recent code changes, historically buggy modules, and critical business flows (e.g., checkout, auth). Mention using test matrices or risk matrices. Explain the difference between regression-critical tests and nice-to-have exploratory testing. A senior answer also references data from production analytics to guide priorities.
Practice this question on its own pageTry a scored practice question, freeFocus on how you framed quality in business terms, cost of bugs in production, customer churn, support ticket volume - rather than abstract ideals. Describe specific data you presented and the compromise reached. Strong answers show you understand that shipping fast has value too, and you found a pragmatic middle ground rather than blocking the release.
Practice this question on its own pageTry a scored practice question, freeDescribe specific actions: pair testing sessions, code review feedback on test scripts, creating documentation or onboarding guides, assigning stretch tasks with guardrails. Mention how you adjusted your mentoring style to the person's learning needs. Reference measurable outcomes, e.g., the junior went from writing 0 to 50 automated tests within 3 months.
Practice this question on its own pageTry a scored practice question, freeExplain your process for identifying ambiguities early, reviewing stories before sprint planning, writing test scenarios that expose gaps, and asking targeted questions. Mention tools like decision tables or example mapping to clarify edge cases. A strong answer shows you're proactive about requirements clarity rather than waiting for bugs to surface.
Practice this question on its own pageTry a scored practice question, freeDescribe the problem you identified (e.g., slow regression cycles, flaky tests blocking deployments, lack of API testing), the solution you proposed and implemented, and measurable results (e.g., reduced regression from 3 days to 4 hours, cut flaky test rate from 15% to 2%). Show initiative and the ability to drive change across teams.
Practice this question on its own pageTry a scored practice question, freeDiscuss translating technical metrics into business language, instead of "80% code coverage," say "all critical user flows are verified." Mention dashboards, risk heatmaps, and summary reports that highlight what's tested, what's not, and what the risks are. Strong answers show empathy for stakeholder concerns (timeline, revenue impact) rather than just test metrics.
Practice this question on its own pageTry a scored practice question, freeWalk through your learning approach: official docs first, then hands-on practice with a small proof-of-concept, then applying it to the real project. Mention specific resources you used and how you managed the learning curve while still delivering. Show that you're a self-directed learner who doesn't wait for formal training.
Practice this question on its own pageTry a scored practice question, freeDescribe how you built the case for automation, which tests to automate first (smoke tests, high-frequency regression), the framework selection process, and how you got buy-in. Mention starting small with high-ROI tests rather than trying to automate everything at once. Discuss how you balanced manual testing responsibilities with building the automation foundation.
Practice this question on its own pageTry a scored practice question, freeAddress timezone coordination, asynchronous communication, and how you maintained testing quality without in-person collaboration. Mention tools and practices, shared test environments, recorded demo videos, overlapping hours for critical discussions, and clear written documentation to reduce back-and-forth.
Practice this question on its own pageTry a scored practice question, freeExplain pragmatic approaches: testing in staging with mocked dependencies, using feature flags, requesting temporary access, or scoping what can be validated without the full environment. Mention documenting what could and couldn't be tested and communicating remaining risks. Show you're solution-oriented rather than blocked by imperfect conditions.
Practice this question on its own pageTry a scored practice question, freeCover hiring strategy (generalists vs. specialists at different stages), establishing testing standards and processes, choosing tools and frameworks, building a quality culture across engineering, and defining metrics to measure team effectiveness. Mention the first 30/60/90 day plan and how you'd prioritize quick wins while building long-term infrastructure.
Practice this question on its own pageTry a scored practice question, freeDiscuss metrics beyond bug counts: escaped defect rate, mean time to detect, test cycle time, flaky test rate, automation coverage of critical paths, and customer-reported issues. Emphasize that the goal is not zero bugs but appropriate risk management. Mention qualitative measures too, developer confidence in shipping, release frequency, and team satisfaction.
Practice this question on its own pageTry a scored practice question, freeShow accountability without self-blame. Describe the root cause analysis, what the test gap was, why it existed (e.g., untested integration path, environment difference, data edge case), and what systemic improvements you made. Strong answers show you drove post-mortem action items: added monitoring, expanded test coverage, or improved environment parity.
Practice this question on its own pageTry a scored practice question, freeDiscuss risk-based test selection within sprints, automating repetitive regression so manual time goes to exploratory testing, and collaborating with developers on testability. Mention shifting testing left, reviewing designs and writing test cases during planning, not just after code is complete. Show you understand that "done" includes tested.
Practice this question on its own pageTry a scored practice question, freeCover organizational change management: identifying champions, running pilot programs, measuring and sharing results, and scaling gradually. Discuss shifting quality ownership from "QA's job" to "everyone's responsibility", embedding testing in definition of done, developer-written unit tests, shared quality dashboards. Mention executive communication and tying quality to business outcomes.
Practice this question on its own pageTry a scored practice question, freePOM is a design pattern that creates an abstraction layer between test scripts and UI elements. Each page (or component) gets a class that encapsulates its locators and interactions. Benefits: reduces duplication (one locator update fixes all tests), improves readability (tests read like user stories), and makes maintenance scalable. Without POM, a single UI change can break dozens of tests.
Practice this question on its own pageTry a scored practice question, freeFirst, identify if flakiness is from timing (add explicit waits, not sleeps), test data (ensure isolation), or environment (container-based test infra). Track flaky tests with a quarantine mechanism, flag them, fix root causes, and only re-enable when stable. Implement retry logic as a temporary band-aid, not a permanent fix. Monitor flaky test rate as a team metric. In Playwright, use `test.retry()` judiciously and web-first assertions or `locator.waitFor()` over arbitrary delays.
Practice this question on its own pageTry a scored practice question, freePlaywright: best for modern web apps, auto-wait, multi-browser (Chromium, Firefox, WebKit), supports multiple languages, great for parallelism. Selenium: mature ecosystem, supports any language/browser, best when you need to integrate with legacy infrastructure or non-web testing. Cypress: excellent DX for JavaScript teams, time-travel debugging, but limited to Chromium-family browsers and single-tab testing. Choose based on team skills, browser requirements, and existing infrastructure.
Practice this question on its own pageTry a scored practice question, freeStart with goals: what types of tests (UI, API, visual), what browsers/platforms, what CI integration. Architecture layers: test runner (Playwright/Jest), page objects or component abstractions, test data management (factories/fixtures), reporting (Allure, HTML), and CI integration. Key decisions: parallel execution strategy, environment configuration, retry policies, and screenshot/video capture for failures. Start with a few critical path tests and expand. Avoid over-engineering, build what you need now.
Practice this question on its own pageTry a scored practice question, freeHard sleeps (`sleep(5000)`) waste time and are still flaky, avoid them. Implicit waits set a global timeout for element lookups but hide real problems. In Selenium, explicit waits (`WebDriverWait`) wait for a specific condition and are the right tool. In Playwright, prefer web-first assertions and locator actions, which auto-wait, so you rarely need manual waits. When a specific condition really needs waiting on, use `locator.waitFor()` or `page.waitForResponse()`, and avoid `networkidle`. Never wait a fixed time.
Practice this question on its own pageTry a scored practice question, freeApproaches by maturity: (1) Seed data in test setup, API calls or DB seeds before each test. (2) Factory pattern - generate unique data per test run to avoid conflicts. (3) Fixtures - Playwright fixtures provide scoped setup/teardown. (4) Isolated environments - Docker containers with known state. Key principle: each test should be independent and create its own data. Never rely on shared mutable state between tests.
Practice this question on its own pageTry a scored practice question, freeVisual regression captures screenshots of UI components or pages and compares them against approved baselines, pixel-by-pixel or perceptually. Tools: Playwright's `toHaveScreenshot()`, Percy, Chromatic, BackstopJS. Implementation: capture baselines in CI, compare on PR, review diffs in a visual dashboard. Challenges: dynamic content (mask timestamps, ads), responsive breakpoints (test multiple viewports), and managing baseline updates when UI intentionally changes.
Practice this question on its own pageTry a scored practice question, freeParallel execution reduces feedback time, a 60-minute suite can run in 10 minutes across 6 workers. Requirements: test isolation (no shared state or data), independent test environments or careful resource partitioning, and a runner that supports parallelism (Playwright shards, Selenium Grid, TestNG). Challenges: shared databases (use unique prefixes or separate schemas), file system conflicts, and port collisions. Monitor for flakiness introduced by parallelism.
Practice this question on its own pageTry a scored practice question, freeIntegrate axe-core via `@axe-core/playwright` or `cypress-axe`. Run automated a11y scans as part of your test suite, check for missing alt text, color contrast, ARIA roles, keyboard navigation. Automated tools catch ~30-40% of a11y issues (WCAG violations). Supplement with manual keyboard-only testing, screen reader testing (NVDA/VoiceOver), and user testing with people who use assistive technology.
Practice this question on its own pageTry a scored practice question, freeBDD uses natural-language scenarios (Given/When/Then) to describe expected behavior before writing code. Cucumber maps these Gherkin scenarios to step definitions (code). Benefits: shared language between QA, devs, and PMs; living documentation. Drawbacks: extra abstraction layer, step definition maintenance, and Gherkin can become a bottleneck if overused. Best for acceptance tests where non-technical stakeholders need to understand scenarios. Don't force all tests into BDD.
Practice this question on its own pageTry a scored practice question, freeAvoid logging in through the UI for every test, it's slow and fragile. Strategies: (1) API login - hit the auth endpoint, get a token, inject it. (2) Storage state - Playwright's `storageState` saves and reuses cookies/tokens across tests. (3) Bypass auth, use test-only auth shortcuts in lower environments. (4) Token factories - generate valid JWTs directly for test users. Always use dedicated test accounts with known credentials.
Practice this question on its own pageTry a scored practice question, freeRun core tests across Chromium, Firefox, and WebKit (Playwright handles all three natively). Use a matrix strategy in CI, parallel jobs per browser. Pitfalls: CSS rendering differences (especially flexbox/grid edge cases), Web API availability (e.g., some APIs lag in Safari/WebKit), and different JavaScript engine behaviors. Don't run every test cross-browser - focus on critical paths and UI-heavy flows. Use cloud grids (BrowserStack, LambdaTest) for real device coverage.
Practice this question on its own pageTry a scored practice question, freePriority order: (1) `data-testid` attributes, stable, decoupled from styling. (2) Accessible roles/labels, `getByRole("button", { name: "Submit" })`, good for a11y too. (3) Semantic HTML selectors - `form`, `nav`, `main`. Avoid: dynamic class names (CSS modules, Tailwind), XPath (brittle, hard to read), and positional selectors (nth-child). Work with developers to add test IDs during development - it's a 5-second change that saves hours of maintenance.
Practice this question on its own pageTry a scored practice question, freeThe pyramid suggests: many unit tests (fast, cheap), fewer integration tests, and few E2E/UI tests (slow, expensive). It's a useful heuristic but not absolute. Modern alternatives: the "testing trophy" emphasizes integration tests as the sweet spot. For QA-led automation, focus on where you add the most value, often API integration tests and critical E2E paths. The anti-pattern is an "ice cream cone", heavy E2E, few unit tests - which is slow and fragile.
Practice this question on its own pageTry a scored practice question, freeDynamic content: wait for the content to appear or stabilize with web-first assertions or `locator.waitFor()`. For infinite scroll, scroll programmatically and wait for new elements. Iframes: in Playwright, use `page.frameLocator("#iframe-id")` to scope interactions. In Selenium, switch to the iframe context with `driver.switchTo().frame()`. Always switch back to the main frame when done. For shadow DOM, use Playwright's `locator()` which pierces shadow DOM by default.
Practice this question on its own pageTry a scored practice question, freeLink automated test results to test cases in tools like TestRail, Zephyr, or Xray via their APIs. Typical flow: automation run completes → CI pipeline pushes results (pass/fail/skip per test case ID) → management tool updates status. Benefits: unified reporting for manual + automated tests, traceability to requirements, and historical trend data. Map test case IDs in annotations or test names. Don't over-invest in this unless your org requires formal test management.
Practice this question on its own pageTry a scored practice question, freeTest at three levels: (1) Service-level, contract tests (Pact) ensure services communicate correctly, unit/integration tests within each service. (2) Integration - API tests that verify end-to-end flows across services using test environments with all services deployed. (3) E2E - minimal UI tests for critical user journeys. Use consumer-driven contracts to catch integration breaks early. Service virtualization (WireMock) for isolated testing when dependencies are unavailable. Shift ownership: each team owns their service's tests.
Practice this question on its own pageTry a scored practice question, freeFive layers of validation: (1) Status code, correct for the scenario (200, 201, 400, 404, etc.). (2) Response body - correct data, structure, and types. (3) Headers - content-type, cache-control, security headers. (4) Performance - response time within SLA. (5) Error handling - proper error messages and codes for invalid inputs. Also validate idempotency for PUT/DELETE and pagination for list endpoints.
Practice this question on its own pageTry a scored practice question, freeREST: fixed endpoints per resource, HTTP verbs for CRUD, multiple round trips for related data. GraphQL: single endpoint, client specifies exactly what data it needs, fewer round trips. Testing differences: REST, test each endpoint/method combo. GraphQL - test queries, mutations, and subscriptions; validate query depth limits, authorization per field, and N+1 query performance. Both need schema validation, auth testing, and error handling tests.
Practice this question on its own pageTry a scored practice question, freeAuthentication tests: valid token returns 200, expired token returns 401, missing token returns 401, malformed token returns 401. Authorization tests: user A cannot access user B's resources (403), role-based access (admin vs. user), resource-level permissions. Test with multiple user roles and verify each endpoint enforces the correct access level. Also test token refresh flows and session expiration.
Practice this question on its own pageTry a scored practice question, freeContract testing verifies that a consumer and provider agree on the API interface without needing both running simultaneously. Pact workflow: (1) Consumer writes tests defining expected requests/responses, generates a "pact" (contract file). (2) Provider runs the pact against its real implementation to verify compliance. (3) Pact Broker stores contracts and verification results. Benefits: catches integration breaks in CI without deploying all services. Essential for microservices where full integration environments are expensive.
Practice this question on its own pageTry a scored practice question, freeSend requests at the documented rate limit boundary, verify that the Nth+1 request returns 429 (Too Many Requests) with a Retry-After header. Test reset behavior - after the window expires, requests should succeed again. Verify rate limit headers in responses (X-RateLimit-Limit, X-RateLimit-Remaining). Test across different API keys and IP addresses. Use tools like k6 or Artillery for load-based rate limit testing.
Practice this question on its own pageTry a scored practice question, free200 OK (success), 201 Created (resource created), 204 No Content (success, no body, common for DELETE). 301/302 Redirects. 400 Bad Request (client error - invalid input), 401 Unauthorized (not authenticated), 403 Forbidden (authenticated but not authorized), 404 Not Found, 409 Conflict (duplicate resource), 422 Unprocessable Entity (validation failed). 500 Internal Server Error, 502 Bad Gateway, 503 Service Unavailable. Know these by heart - every API test validates status codes.
Practice this question on its own pageTry a scored practice question, freeUse JSON Schema validation libraries (Ajv for JavaScript, jsonschema for Python) to verify response structure: required fields present, correct data types, string formats (email, date-time, UUID), enum values, and array item types. Store schemas as files and validate every API response against them. This catches breaking changes early, a removed field or type change fails the schema check even if the endpoint returns 200.
Practice this question on its own pageTry a scored practice question, freeSetup: create test data via API calls (POST endpoints) before each test, don't rely on pre-existing data. Teardown: delete created data after each test. Use unique identifiers (UUIDs, timestamps) to avoid conflicts in parallel runs. For complex scenarios, use database seeding or transaction rollbacks. In frameworks like Playwright, use `beforeAll`/`afterAll` for shared setup and `beforeEach`/`afterEach` for test-specific data.
Practice this question on its own pageTry a scored practice question, freePositive testing verifies the API works correctly with valid inputs: creating a user with all required fields returns 201. Negative testing verifies graceful handling of invalid inputs: missing required fields (400), invalid email format (422), SQL injection strings (400, not 500), extremely long strings (400), wrong data types (422). A thorough API test suite has more negative tests than positive, the happy path is one path, but there are many ways to fail.
Practice this question on its own pageTry a scored practice question, freeFor webhooks: set up a test endpoint (using tools like webhook.site or a local server) to receive webhook payloads. Trigger the event, then poll your endpoint to verify the webhook arrived with the correct payload, headers, and timing. For async operations: call the initiating endpoint, then poll the status endpoint until completion (with timeout). Verify the final state and any side effects. Test retry behavior for failed webhook deliveries.
Practice this question on its own pageTry a scored practice question, freeTest: (1) First page returns correct page size. (2) Navigating all pages returns all records without duplicates. (3) Empty page when offset exceeds total. (4) Page size parameter works correctly. (5) Sorting is consistent across pages. (6) Total count header/field is accurate. (7) Edge cases: page=0, page=-1, pageSize=0, very large pageSize. For cursor-based pagination, verify cursor stability when data changes between requests.
Practice this question on its own pageTry a scored practice question, freeBeyond basic requests: (1) Collections, organize tests by feature/workflow. (2) Pre-request scripts - dynamic data generation, token refresh. (3) Tests tab - JavaScript assertions on status, body, headers, response time. (4) Environments - switch between dev/staging/prod variables. (5) Collection runner - run all tests sequentially with data files (CSV/JSON). (6) Newman - CLI runner for CI integration. (7) Monitors - scheduled runs for production API health checks.
Practice this question on its own pageTry a scored practice question, freeVerify: (1) Both versions (v1, v2) work simultaneously during migration. (2) v1 responses match documented v1 schema (no v2 leakage). (3) Deprecation headers are present on old versions. (4) Backward compatibility, clients using v1 aren't broken. (5) Version negotiation (via URL path, header, or query param) routes correctly. Test the full lifecycle: create in v1, read in v2, and vice versa if supported.
Practice this question on its own pageTry a scored practice question, freeKey areas: (1) Injection, SQL injection, NoSQL injection, command injection in parameters. (2) Broken auth - test with expired/invalid/missing tokens, horizontal privilege escalation (access other users' data). (3) Mass assignment - send extra fields to see if the API blindly accepts them. (4) Rate limiting - verify limits are enforced. (5) CORS - verify allowed origins. (6) Input validation - boundary values, special characters, oversized payloads. Tools: OWASP ZAP, Burp Suite for automated scanning.
Practice this question on its own pageTry a scored practice question, freeREST Assured is a Java library for testing REST APIs with a fluent, readable syntax: `given().header(...).when().get(...).then().statusCode(200)`. Use it when: your team is Java-based, you need tight integration with TestNG/JUnit, or you want type-safe request/response handling. Advantages: fluent DSL, JSON/XML path extraction, schema validation built-in. Alternatives: Postman+Newman (language-agnostic), Playwright API testing (JavaScript), Requests+pytest (Python).
Practice this question on its own pageTry a scored practice question, freeUpload tests: verify multipart/form-data handling, file size limits (test at boundary and over), allowed file types (reject .exe, accept .pdf), filename sanitization (special characters, path traversal attempts like "../"), and virus scanning if applicable. Download tests: verify Content-Disposition header, correct MIME type, file integrity (checksum comparison), range requests for large files, and authorization (user A can't download user B's files).
Practice this question on its own pageTry a scored practice question, freeCritical areas: (1) Happy path, successful charge, refund, subscription creation. (2) Payment failures - declined cards, insufficient funds, expired cards (use test card numbers). (3) Idempotency - duplicate charge requests don't double-charge. (4) Webhooks - verify event delivery for charge.succeeded, charge.failed, subscription.canceled. (5) Currency handling - decimal precision, conversion. (6) PCI compliance - ensure no raw card data in logs or responses. (7) Concurrency - race conditions on balance updates. Use sandbox/test mode exclusively.
Practice this question on its own pageTry a scored practice question, freeLoad testing: measure performance under expected user volume (e.g., 1000 concurrent users). Stress testing: push beyond expected limits to find the breaking point (e.g., ramp to 10,000 users until errors appear). Spike testing: sudden burst of traffic (e.g., 0 to 5000 users in 10 seconds) to test auto-scaling and recovery. Each answers a different question: "Can we handle normal traffic?" vs. "When do we break?" vs. "Can we handle sudden surges?"
Practice this question on its own pageTry a scored practice question, freeResponse time (p50, p95, p99, not just average), throughput (requests per second), error rate (% of failed requests), concurrent users, and resource utilization (CPU, memory, disk I/O, network). p95 and p99 are more important than average - they show worst-case user experience. Also monitor: database query times, connection pool usage, queue depth, and garbage collection pauses.
Practice this question on its own pageTry a scored practice question, freeJMeter: GUI-based, Java, huge plugin ecosystem, great for complex protocols (SOAP, JMS, JDBC), but resource-heavy per thread. k6: JavaScript-based, lightweight Go runtime, modern API, excellent for CI/CD integration and developer-written tests, but fewer protocols than JMeter. Gatling: code-first approach with Java and JavaScript/TypeScript SDKs, excellent reports, efficient non-blocking architecture. Choose k6 for developer teams and CI integration, JMeter for complex enterprise protocols, Gatling for code-first performance teams.
Practice this question on its own pageTry a scored practice question, freeSystematic approach: (1) Correlate response time degradation with resource metrics, does CPU spike when response times increase? (2) Check database - slow queries (enable slow query log), connection pool exhaustion, lock contention. (3) Check application - thread pool saturation, memory leaks (heap growth over time), GC pauses. (4) Check infrastructure - network bandwidth, disk I/O, load balancer distribution. (5) Use APM tools (Datadog, New Relic) to trace individual slow requests through the stack.
Practice this question on its own pageTry a scored practice question, freeBasic structure: define `options` (stages for ramp-up/down, thresholds for pass/fail), export a `default function` with HTTP requests and checks. Example: `export const options = { stages: [{ duration: "2m", target: 100 }, { duration: "5m", target: 100 }, { duration: "2m", target: 0 }], thresholds: { http_req_duration: ["p(95)<500"] } }`. Use `check()` for assertions, `group()` for logical grouping, and `sleep()` for think time between requests.
Practice this question on its own pageTry a scored practice question, freeThink time simulates the pause between user actions, a real user reads a page for 5-30 seconds before clicking the next link. Without think time, your load test generates unrealistically high request rates (each virtual user fires requests back-to-back), making results inaccurate. Too much think time underestimates load. Use realistic think times based on analytics data. In k6: `sleep(Math.random() * 5 + 2)` for 2-7 second random pauses.
Practice this question on its own pageTry a scored practice question, freeBeyond HTTP load testing, directly test the database layer: (1) Query performance, EXPLAIN plans for critical queries, index coverage. (2) Connection pooling - test pool exhaustion under load. (3) Read/write ratio - mirror production patterns. (4) Data volume - test with production-scale data (not a tiny dev DB). (5) Lock contention - concurrent updates to the same rows. (6) Replication lag - test read-replica consistency under write-heavy load. Monitor: query time percentiles, connection wait time, deadlock frequency.
Practice this question on its own pageTry a scored practice question, freeBase thresholds on: (1) Business requirements, "checkout must complete in under 3 seconds." (2) Current baseline - measure existing performance, set thresholds to detect regressions (e.g., p95 must not exceed 1.2x baseline). (3) Industry standards - Google recommends <200ms for API calls, <3s for page loads. (4) User expectations - correlated with bounce rates. Express as: p95 response time < X ms, error rate < Y%, throughput > Z rps. Fail the build in CI if thresholds are breached.
Practice this question on its own pageTry a scored practice question, freeVertical: more CPU/RAM on a single machine, simpler but has a ceiling. Horizontal: more machines behind a load balancer - scales further but adds complexity (session management, data consistency). Test vertical: increase load until resources max out, note the ceiling. Test horizontal: verify load balancer distributes evenly, test with N and N+1 instances, verify auto-scaling triggers at the right threshold, and test instance startup time under sudden load.
Practice this question on its own pageTry a scored practice question, freeProcess: (1) Establish current capacity, what load does the system handle within SLA thresholds? (2) Model growth - if traffic is growing 20% quarterly, when will current capacity be exceeded? (3) Test scaling scenarios - does adding 2x instances give 2x capacity (linear scaling) or less (bottleneck elsewhere)? (4) Identify the constraint - DB, network, CPU, or specific service. (5) Build a capacity model: users × avg requests per session × peak multiplier = required throughput. Re-validate quarterly.
Practice this question on its own pageTry a scored practice question, freeTest both cached and uncached scenarios: (1) Cache hit, verify CDN serves content quickly from edge. (2) Cache miss - test origin server performance when CDN cache is cold (purge cache before testing). (3) Cache invalidation - verify stale content is purged correctly. (4) Geographic distribution - run load tests from multiple regions to test CDN edge performance. (5) Dynamic vs. static - ensure CDN only caches appropriate content. (6) Cache thundering herd - many simultaneous cache misses for the same resource.
Practice this question on its own pageTry a scored practice question, freeSoak (endurance) testing runs a moderate load for an extended period (4-24+ hours) to find issues that only appear over time: memory leaks, connection pool exhaustion, log file disk consumption, database connection leaks, and performance degradation from fragmentation. Use it before major releases or when you suspect resource leaks. Monitor resource trends, a slow upward crawl in memory usage indicates a leak even if the app performs fine in short tests.
Practice this question on its own pageTry a scored practice question, freeWebSockets maintain persistent connections, so the key metrics differ: connection count (how many simultaneous connections before failure), message latency (time from send to receive), message throughput (messages per second), reconnection behavior under network instability, and memory per connection on the server. Tools: k6 has WebSocket support, Artillery supports Socket.io, or custom scripts with ws library. Test both fan-out (one message to many clients) and fan-in (many clients sending simultaneously).
Practice this question on its own pageTry a scored practice question, freeUse lightweight performance tests (not full load tests) in CI: (1) Run a small-scale load test (50-100 VUs for 2 minutes) against a dedicated perf environment. (2) Assert thresholds in the script, k6 `thresholds` fail the test if p95 > X ms. (3) Fail the pipeline if thresholds are breached. (4) Store results (InfluxDB + Grafana) for trend analysis over time. (5) Run full-scale load tests on a schedule (nightly or pre-release) rather than on every commit. Keep CI fast, catch regressions automatically.
Practice this question on its own pageTry a scored practice question, freeA test against an empty database is meaningless. Approaches: (1) Snapshot production data (anonymized/masked) into the test environment. (2) Generate synthetic data at production scale using data factories. (3) Account for data growth, test with 2x current data volume. (4) Include data variety - different user types, edge cases in data. Key areas affected by data volume: query performance (index effectiveness at scale), pagination, search, and reporting. Always mention data volume when reporting results.
Practice this question on its own pageTry a scored practice question, freePerformance budgets set limits on frontend metrics: total page weight (<500KB), JavaScript bundle size (<200KB), time to interactive (<3s), largest contentful paint (<2.5s), and cumulative layout shift (<0.1). Enforce in CI using Lighthouse CI, bundlesize, or webpack-bundle-analyzer. When a PR exceeds the budget, it fails. This prevents gradual performance decay where individual changes are small but accumulate into a slow app. Google's Core Web Vitals provide industry-standard thresholds.
Practice this question on its own pageTry a scored practice question, freeMulti-layer strategy: (1) Component testing, individual service benchmarks. (2) Integration testing - end-to-end transaction flows (browse → cart → checkout). (3) Full-scale load testing - simulate peak events (Black Friday) with geo-distributed load generation. (4) Chaos engineering - test resilience under failure (service down, network partition, slow database). (5) Production monitoring - synthetic monitoring, real user monitoring (RUM), alerting on SLA breach. Scale considerations: CDN caching, database read replicas, queue-based order processing. Test from multiple geographic regions to verify CDN and latency.
Practice this question on its own pageTry a scored practice question, freeCI (Continuous Integration): developers merge code frequently, automated builds and tests run on every merge. CD (Continuous Delivery/Deployment): code automatically progresses through stages to production. For QA: CI/CD means faster feedback (know within minutes if a change breaks something), consistent test execution (no "works on my machine"), and the ability to test every commit rather than a batch of changes. QA's role shifts from "gatekeeper" to "quality enabler", building test automation that runs in the pipeline.
Practice this question on its own pageTry a scored practice question, freeTypical stages: (1) Lint + unit tests (fast, fail early). (2) Build application. (3) Deploy to test environment. (4) Integration/API tests (parallel if possible). (5) E2E/UI tests (parallel shards). (6) Performance smoke test (optional). (7) Report results, upload artifacts (screenshots, videos). Key decisions: when to run (every PR, main only, nightly), parallelism (matrix strategy for browsers), and failure handling (block merge vs. warning). Cache dependencies between runs for speed.
Practice this question on its own pageTry a scored practice question, freeOptions by maturity: (1) Shared staging, simple but tests conflict with each other. (2) Ephemeral environments - spin up a fresh environment per PR (Vercel preview deployments, Docker Compose, Kubernetes namespaces). (3) Service virtualization - mock external dependencies. Best practice: ephemeral environments with database seeding, destroyed after pipeline completes. This gives isolation without maintaining permanent test environments. For external services, use sandboxes or mocks.
Practice this question on its own pageTry a scored practice question, freeDocker packages an application and its dependencies into a lightweight, portable container that runs consistently everywhere. For testing: (1) Consistent test environments, same container runs locally and in CI. (2) Dependency isolation - run a Postgres, Redis, or Elasticsearch container for tests without installing them. (3) Parallelism - spin up multiple isolated containers for parallel test execution. (4) Clean state - destroy and recreate containers for fresh test environments. Docker Compose orchestrates multi-container setups.
Practice this question on its own pageTry a scored practice question, freeStrategies: (1) Parallelism, shard tests across multiple CI runners (Playwright: `--shard=1/4`). (2) Selective testing - only run tests affected by changed files (using test impact analysis or path-based filtering). (3) Caching - cache node_modules and Docker layers between runs (not Playwright browsers: restoring that cache takes about as long as downloading, so install with `npx playwright install --with-deps`). (4) Fail fast - run smoke tests first, stop early on failure. (5) Tier tests - fast tests on every PR, full suite nightly. (6) Optimize test setup - API-based data seeding instead of UI-based, reuse auth state. Target: PR feedback in <10 minutes.
Practice this question on its own pageTry a scored practice question, freeShift-left means moving testing earlier in the development lifecycle, finding bugs when they're cheapest to fix. Implementation: (1) Pre-commit - linting, type checking, unit tests. (2) PR-level - automated test suite, code review with testability focus. (3) Design phase - QA reviews designs and writes test scenarios before development starts. (4) Requirements - QA participates in story grooming, identifies edge cases. (5) Developer testing - encourage developers to write tests, provide easy-to-use test infrastructure. The goal: bugs found in code review, not in production.
Practice this question on its own pageTry a scored practice question, freeReporting: use standard formats (JUnit XML, Allure) that CI tools can parse. Allure provides rich HTML reports with screenshots, steps, and history. Upload test artifacts (screenshots, videos, traces) as build artifacts. Notifications: Slack/Teams integration for failures, include test name, error message, and link to report. PR comments with test summary (GitHub Actions: dorny/test-reporter). Dashboard: Grafana for trend visualization - track test pass rate, duration, and flaky test rate over time.
Practice this question on its own pageTry a scored practice question, freeIaC defines infrastructure (servers, databases, networks) in version-controlled configuration files (Terraform, CloudFormation, Pulumi). For testing: (1) Reproducible environments, spin up identical test infrastructure on demand. (2) Environment parity - test environments match production configuration. (3) Self-service - QA can create/destroy environments without DevOps bottleneck. (4) Cost control - destroy environments when not in use. (5) Audit trail - all changes are reviewed and tracked in Git. Test environments should be defined in IaC alongside the application code.
Practice this question on its own pageTry a scored practice question, freeNever hardcode secrets in test code or config files. Use: (1) CI secret management, GitHub Secrets, Jenkins Credentials. (2) Environment variables - injected at runtime, not stored in code. (3) Secret managers - AWS Secrets Manager, HashiCorp Vault for dynamic secrets. (4) Test-specific credentials - separate from production, rotated regularly. (5) Mask secrets in logs - most CI tools auto-mask, but verify. Common mistake: committing .env files or screenshots containing tokens. Add .env to .gitignore and scan for secrets in pre-commit hooks.
Practice this question on its own pageTry a scored practice question, freeFeature flags allow toggling features without deployment (tools: LaunchDarkly, Unleash, or simple config). Testing implications: (1) Test matrix expands, each flag combination is a potential state. (2) Focus on critical combinations, not all permutations. (3) Test flag default state AND enabled state. (4) Test flag transitions - what happens when a flag is toggled in production? (5) Clean up old flags - untested dead code paths. (6) Use flags for canary releases - roll out to 5% of users, monitor, then expand. QA should be involved in flag rollout plans.
Practice this question on its own pageTry a scored practice question, freeBlue-green maintains two identical production environments. "Blue" serves live traffic while "green" gets the new release. After green passes validation, traffic switches to green. QA role: (1) Smoke test the green environment before switching. (2) Verify critical paths, login, core business flows. (3) Validate data compatibility - does the new version work with the existing database? (4) Test rollback - can you switch back to blue if issues arise? (5) Monitor after switch - compare error rates and performance between blue baseline and green.
Practice this question on its own pageTry a scored practice question, freeQuality gates are automated checkpoints that block promotion if criteria aren't met. Examples: (1) Code coverage threshold (e.g., new code must be >80% covered). (2) Zero critical/high security vulnerabilities (Snyk, SonarQube). (3) All tests pass (no test failures). (4) Performance budget met (Lighthouse score >90). (5) No flaky tests introduced. Implementation: configure CI to run checks and block merge/deploy on failure. Balance: too strict = developer friction, too loose = quality issues. Start strict on critical paths, lenient on experimental branches.
Practice this question on its own pageTry a scored practice question, freeMigrations are high-risk, test them before production. Strategy: (1) Run migrations against a production-schema clone (not empty DB). (2) Test forward migration AND rollback. (3) Verify data integrity after migration - row counts, checksums, sample data validation. (4) Test with production-scale data volume (migration that takes 1 second on dev data may take 30 minutes on production). (5) Zero-downtime migrations - verify the app works with both old and new schema simultaneously during rolling deployments. (6) Include migration in CI with a seeded database.
Practice this question on its own pageTry a scored practice question, freeGitOps treats Git as the single source of truth for infrastructure and application state, changes are made via PRs, applied by automated operators (ArgoCD, Flux). For testing: (1) Every environment change is a code change, so it's testable in CI. (2) Rollback is a git revert. (3) Environment drift is eliminated - if it's not in Git, it's not deployed. (4) Test configurations are versioned alongside code. QA benefit: you can reproduce any environment state by checking out that commit.
Practice this question on its own pageTry a scored practice question, freeEach microservice should be independently deployable. Test: (1) Deploy service A v2 while service B stays at v1, verify communication still works (contract tests catch this). (2) Verify backward-compatible API changes - don't break consumers. (3) Test service discovery - does the new version register and route correctly? (4) Test circuit breakers - what happens when a dependency is down? (5) Test data schema compatibility across versions. CI pipeline: each service has its own pipeline, with cross-service integration tests triggered on deploy to shared environments.
Practice this question on its own pageTry a scored practice question, freeChaos engineering deliberately injects failures to test resilience. CI integration: (1) Start with game days, manual experiments in staging. (2) Automate with tools (Chaos Monkey, Litmus, Gremlin) - kill pods, inject latency, simulate network partitions. (3) Define steady-state metrics - error rate, response time, throughput. (4) Run experiments and verify the system stays within acceptable bounds. (5) Graduate to production chaos (carefully, with kill switches). QA role: define the "blast radius," monitor impact, and validate self-healing. Start small - kill one instance and verify recovery.
Practice this question on its own pageTry a scored practice question, freeThe test pyramid suggests: many fast unit tests at the base, fewer integration tests in the middle, and few slow E2E tests at the top. In practice: developers own unit tests, QA focuses on integration and E2E tests for critical flows. The anti-pattern is the "ice cream cone", too many E2E tests that are slow and flaky. Apply it pragmatically: if your app is API-heavy, invest more in API integration tests. If it's UI-heavy, visual regression tests may be more valuable than unit tests.
Practice this question on its own pageTry a scored practice question, freeA test plan covers: (1) Scope, what's being tested and what's out of scope. (2) Test approach, manual vs. automated, exploratory vs. scripted. (3) Test scenarios - positive paths, negative paths, edge cases. (4) Test data requirements - what data needs to exist. (5) Environment - where tests will run. (6) Entry/exit criteria - when to start testing, when to declare "done." (7) Risks - what could go wrong, what might not be testable. Keep it lightweight - a one-page document or checklist, not a 50-page specification.
Practice this question on its own pageTry a scored practice question, freeRisk-based testing prioritizes testing effort based on probability of failure × impact of failure. Implementation: (1) Identify risk factors, new code, complex logic, third-party integrations, historically buggy areas. (2) Assign risk scores - high/medium/low for probability and impact. (3) Allocate testing effort proportionally - high-risk areas get thorough testing, low-risk areas get smoke tests. (4) Review risks each sprint - new features shift the risk landscape. Tools: risk matrices, heatmaps. This ensures limited testing time targets the highest-value areas.
Practice this question on its own pageTry a scored practice question, freeExploratory testing is simultaneous learning, test design, and execution, you explore the app, form hypotheses, and test them in real-time. It finds bugs that scripted tests miss: usability issues, unexpected edge cases, integration problems, and "what if" scenarios. Structure with session-based testing: time-boxed sessions with a charter (e.g., "Explore the checkout flow focusing on payment error handling"). Automation handles regression; exploratory testing handles discovery. Both are essential - neither alone is sufficient.
Practice this question on its own pageTry a scored practice question, free100% code coverage is not a useful goal, it encourages testing trivial code while missing important scenarios. Coverage types: (1) Code coverage - lines/branches executed (measured by Istanbul/c8). (2) Requirements coverage - which requirements have test cases. (3) Risk coverage - which high-risk areas are tested. Better metrics: critical path coverage (are all business-critical flows tested?), mutation testing score (do tests actually catch bugs?), and escaped defect rate (how many bugs reach production?). Aim for high coverage of critical paths, not arbitrary coverage percentages.
Practice this question on its own pageTry a scored practice question, freeEquivalence partitioning divides inputs into groups that should behave the same way, test one value from each group instead of every possible input. Example: age field accepts 18-65 → partitions: <18 (invalid), 18-65 (valid), >65 (invalid). Boundary value analysis tests at the edges of partitions: 17, 18, 65, 66. Bugs cluster at boundaries because code uses <, <=, >, >= and off-by-one errors are common. Together, these techniques reduce test cases while maximizing defect detection.
Practice this question on its own pageTry a scored practice question, freeRegression testing verifies that new changes don't break existing functionality. Strategy: (1) Automate the regression suite, no human should repeatedly run the same tests. (2) Prioritize by risk - not every test runs on every change. (3) Maintain the suite - remove obsolete tests, update for UI changes, fix flaky tests. (4) Layer it - smoke tests (5 minutes) on every commit, full regression (30 minutes) on PR merge, extended regression (hours) nightly. The biggest antipattern: a regression suite that takes so long nobody runs it.
Practice this question on its own pageTry a scored practice question, freeVerification: "Are we building the product right?", does the implementation match the specification? (code reviews, unit tests, static analysis). Validation: "Are we building the right product?", does the product meet the user's actual needs? (user acceptance testing, beta testing, usability testing). A feature can pass verification (matches spec perfectly) but fail validation (the spec was wrong, and users don't want it). QA should care about both, don't just test against the spec, question whether the spec makes sense.
Practice this question on its own pageTry a scored practice question, freeMonorepo: all services in one repo. Testing benefits: easy cross-service refactoring, shared test utilities, atomic commits across services. Challenges: need selective testing (only run tests for affected services), CI pipeline can be slow without proper change detection (Nx, Turborepo). Polyrepo: each service in its own repo. Testing benefits: clear ownership, independent CI pipelines. Challenges: cross-repo integration testing is harder, version synchronization, need contract tests between repos. Neither is inherently better, match to team structure and workflow.
Practice this question on its own pageTry a scored practice question, freeKey metrics to visualize: (1) Escaped defect rate, bugs found in production per release. (2) Test pass rate trend - is quality improving or degrading? (3) Flaky test rate - % of tests that intermittently fail. (4) Mean time to detect - how long between a bug being introduced and found. (5) Automation coverage of critical paths. (6) Release cycle time - from commit to production. (7) CI pipeline duration trend. Tools: Grafana + InfluxDB for time-series data, Allure for test reports, or a custom dashboard in your preferred stack. Review metrics in sprint retrospectives.
Practice this question on its own pageTry a scored practice question, freeMutation testing modifies (mutates) your source code in small ways, changing `>` to `>=`, `true` to `false`, removing a line - then runs your tests. If tests still pass with the mutation (a "survivor"), your tests missed that behavior. It measures test effectiveness, not just coverage. Tools: Stryker (JavaScript/TypeScript), PIT (Java). It's slow (runs tests many times), so use on critical modules, not the entire codebase. A high mutation score (>80%) means your tests actually catch bugs, not just execute code.
Practice this question on its own pageTry a scored practice question, freeAutomate: repetitive regression tests, data-driven tests with many input combinations, smoke tests for CI, cross-browser/device matrix testing. Keep manual: exploratory testing, usability evaluation, visual design review, one-time tests for a specific release, tests for rapidly changing features (automation can't keep up). The ROI calculation: if a test will run more than 5 times and the automation cost is less than 5× the manual cost, automate it. Don't automate everything, some tests are cheaper to run manually forever.
Practice this question on its own pageTry a scored practice question, freeBlack-box: test without knowledge of internal code, focus on inputs and outputs (functional testing, user perspective). White-box: test with full knowledge of code - focus on logic paths, branches, and internal state (unit testing, code review). Gray-box: partial knowledge - you understand the architecture and data flow but test through external interfaces (API testing with knowledge of the database schema). Most QA work is gray-box - you understand the system architecture but test through the UI or API rather than directly testing internal functions.
Practice this question on its own pageTry a scored practice question, freeQuality is everyone's responsibility, not just QA's. Implementation: (1) Developers write unit tests, it's part of "done." (2) QA provides test infrastructure and guidance, not just test execution. (3) Define quality criteria in the definition of done - tests pass, no critical bugs, a11y checked. (4) Shared quality dashboards visible to the whole team. (5) QA participates in design reviews, not just test execution. (6) Post-mortem culture - production bugs are learning opportunities, not blame. (7) Celebrate quality wins - recognize developers who write great tests. The QA engineer's role evolves from tester to quality coach.
Practice this question on its own pageTry a scored practice question, freePhased approach: Phase 1 (Months 1-3): Assess current state, catalog existing manual tests, identify highest-ROI automation candidates (smoke tests, critical regression). Select framework and train the team. Phase 2 (Months 3-6): Build foundation - automate top 20 critical paths, integrate into CI, establish coding standards for tests. Phase 3 (Months 6-12): Scale - expand coverage, add API testing layer, reduce manual regression cycle. Phase 4 (Ongoing): Optimize - performance testing, visual regression, quality metrics dashboard. Key success factors: executive buy-in, dedicated automation time (not "do it between manual testing"), and measuring ROI to sustain investment.
Practice this question on its own pageTry a scored practice question, freeStrong answers show transparency and preparation. Describe coming to the meeting with data (defect metrics, risk assessment, repro steps), presenting the impact in business terms, and offering options rather than just the problem. Mention framing it as "here is what we know, here are our options" rather than "we cannot ship." Show you maintained trust by being honest early rather than hiding issues.
Practice this question on its own pageTry a scored practice question, freeDiscuss agile adaptability: maintaining a living test plan rather than a rigid document, focusing on risk-based testing for the most volatile areas, automating stable flows first, and using exploratory testing for new features. Mention how you communicated scope changes to the team and negotiated realistic timelines. Strong answers include specific examples of reprioritizing test cases when requirements shifted.
Practice this question on its own pageTry a scored practice question, freeGood answers demonstrate proactivity: escalate politely through proper channels, document the blocker in the project tracker, switch to testing other areas that are not blocked, prepare test data and environments in advance, and write test cases for the blocked area so you are ready when unblocked. Mention communication, following up, and keeping your manager informed of the impact on timelines.
Practice this question on its own pageTry a scored practice question, freeDescribe the specific test, what it caught, and how the bug would have impacted users. Explain why manual testing might have missed it (timing, data combination, race condition). Discuss the ROI of the automation effort in concrete terms. Strong answers also mention how you shared the success with the team to build confidence in automation.
Practice this question on its own pageTry a scored practice question, freeShow that you seek alignment rather than choosing sides. Describe bringing stakeholders together to agree on priority order, using data (customer impact, revenue risk, deployment deadline) to make the case. Mention frameworks like RICE or MoSCoW. Explain how you communicate capacity constraints transparently and propose trade-offs rather than silently overcommitting.
Practice this question on its own pageTry a scored practice question, freeEffective approaches include: (1) Start with quick wins, automate one flaky area and show results. (2) Make quality visible through dashboards and metrics. (3) Include developers in testing conversations during sprint planning. (4) Celebrate when tests catch bugs. (5) Avoid shaming, frame quality as shared responsibility. (6) Lead by example with thorough testing on your own work. (7) Gradually introduce quality gates in CI. Explain that culture change takes months, not days.
Practice this question on its own pageTry a scored practice question, freeAuthenticity matters here. Describe a real situation, a bug you missed, an environment you did not test, or a regression you overlooked. Explain the impact honestly. Then focus on the systemic fix: what process change, automation addition, or checklist you created to prevent recurrence. Strong answers show growth and humility rather than defensiveness.
Practice this question on its own pageTry a scored practice question, freeProactive knowledge management: (1) Document test strategies and key decisions in a team wiki. (2) Pair testing sessions so knowledge is distributed. (3) Code reviews on automation ensure shared understanding. (4) Record walkthroughs of complex test setups. (5) Maintain a "bus factor" dashboard showing who knows what. (6) Cross-train team members on each other's domains. The goal is that no single person is a single point of failure.
Practice this question on its own pageTry a scored practice question, freeDescribe using data to support your position: test case count, historical velocity, environment setup time. Explain what you proposed as alternatives, reduced scope, parallel testing, risk-based approach. Show that you offered solutions, not just objections. Mention the outcome and how you maintained a collaborative relationship with the project manager.
Practice this question on its own pageTry a scored practice question, freeMention specific sources: testing conferences (SeleniumConf, TestBash), blogs (Ministry of Testing, Test Automation University), podcasts, and open-source projects. Discuss dedicating time to learn, running proof-of-concepts with new tools, and sharing findings with the team. Strong answers show a habit of continuous learning rather than waiting for the company to provide training.
Practice this question on its own pageTry a scored practice question, freeDescribe the before-state (manual process, time spent), the change you made (automation, tooling, workflow improvement), and the measurable after-state (hours saved per sprint, faster feedback loop). Strong answers include specific numbers: "Reduced regression cycle from 3 days to 4 hours" or "Eliminated 20 hours of manual testing per sprint."
Practice this question on its own pageTry a scored practice question, freeDiscuss using tools (axe-core, Lighthouse, screen readers like NVDA/VoiceOver), following WCAG guidelines, including accessibility in acceptance criteria, and testing with keyboard-only navigation. Mention the business case: legal compliance, broader user reach. Strong answers show personal commitment to inclusivity beyond just checking boxes.
Practice this question on its own pageTry a scored practice question, freeGood answers show initiative: reading documentation, asking developers for a walkthrough, pairing with a developer during testing, starting with exploratory testing to build understanding, and writing test cases as you learn. Show that you are not afraid to ask questions and that you view not knowing as a starting point, not a blocker.
Practice this question on its own pageTry a scored practice question, freeDescribe tracking specific metrics: defect escape rate, test execution time, flaky test rate, code coverage trends, time-to-feedback in CI. Explain how you used these to identify bottlenecks and justify improvements. Strong answers include a before/after comparison showing the impact of data-driven changes.
Practice this question on its own pageTry a scored practice question, freeDiscuss establishing communication channels, shared test environments, integration test ownership, and API contract testing. Explain how you coordinated deployment schedules, handled versioning conflicts, and created end-to-end test suites that spanned multiple services. Mention tools and practices for cross-team visibility.
Practice this question on its own pageTry a scored practice question, freePhase 1: Define the quality vision and how it aligns with business goals. Phase 2: Hire based on culture fit and adaptability, not just technical skills, startups need generalists. Phase 3: Establish lightweight processes first (CI integration, smoke tests, exploratory testing). Phase 4: Scale with the product, add automation as the product stabilizes, add performance testing as user base grows. Key: avoid over-engineering early, focus on fast feedback loops, and build quality into the development process rather than layering it on top.
Practice this question on its own pageTry a scored practice question, freeDiscuss async communication practices: detailed bug reports with screenshots/videos, clear handoff documentation at end of day, shared dashboards for test progress, overlapping hours for critical sync meetings. Mention tools like Slack, Loom, and shared wikis. Show you value written communication and documentation to bridge time zone gaps.
Practice this question on its own pageTry a scored practice question, freeDescribe recognizing a pattern across multiple bugs (e.g., all related to date handling, all in the same module, all after a specific deployment pattern). Explain how you traced it to a root cause (missing code review, inadequate test data, flawed architecture), proposed a systemic fix, and measured the improvement. Show systems thinking rather than whack-a-mole bug fixing.
Practice this question on its own pageTry a scored practice question, freeAutomate: high-frequency regression tests, smoke tests, data-driven tests, cross-browser checks. Keep manual: exploratory testing, usability evaluation, one-time verifications, tests requiring human judgment (visual appeal, UX flow). The ROI equation: if the test runs more than 3 times and the setup cost is less than the cumulative manual cost, automate it. Consider maintenance cost too, a flaky automated test can cost more than a manual one.
Practice this question on its own pageTry a scored practice question, freePOM separates page interactions (selectors, actions) from test logic. Each page or component gets its own class/object with methods like fillEmail(), clickSubmit(). Benefits: when a selector changes, you update one file instead of dozens of tests. It improves readability, tests read like user stories. It enables reuse, the same page object works across multiple test files. Without POM, selector changes cascade through every test file.
Practice this question on its own pageTry a scored practice question, freeNever use fixed sleeps. Use waits tied to conditions: prefer web-first assertions, and use locator.waitFor() or waitForResponse when needed. Playwright auto-waits on actions which handles most cases. For dynamic content: avoid networkidle, wait for specific API responses, use polling assertions (expect with timeout). For animations: wait for animation to complete or disable animations in test mode. The key principle: wait for the condition you need, not an arbitrary time.
Practice this question on its own pageTry a scored practice question, freeStrategies by maturity: (1) Hardcoded data in tests, simplest but fragile. (2) Factory functions that generate unique data per run (faker libraries). (3) API-based setup/teardown, create test data via API before tests, clean up after. (4) Database seeding, restore a known state before each test suite. (5) Isolated test environments per PR with their own database. Best practice: each test should create its own data and clean up, never depend on pre-existing state. Use unique identifiers (timestamps, UUIDs) to prevent collisions in parallel runs.
Practice this question on its own pageTry a scored practice question, freeMethods: (1) API-based auth, call the login endpoint directly, store the session token/cookie. (2) Playwright storageState, log in once, save browser state to a file, reuse across tests. (3) Mock auth, inject a valid JWT in test environment. (4) Service accounts with long-lived tokens for CI. Best practice: log in through UI in one dedicated auth test, use API/state reuse for all others. This saves minutes per test run.
Practice this question on its own pageTry a scored practice question, freeSystematic approach: (1) Track flaky tests with a quarantine system, flag but do not delete. (2) Analyze patterns, is it timing? Environment? Data? Concurrency? (3) Fix root causes: replace sleeps with explicit waits, isolate test data, stabilize test environments. (4) Auto-retry with reporting, retry once in CI but flag retried tests for investigation. (5) Set a flaky test budget, no more than 2% of suite should be flaky. (6) Weekly flaky test triage meetings. Never just re-run and hope.
Practice this question on its own pageTry a scored practice question, freeTools: Playwright visual comparisons, Percy, Chromatic, BackstopJS. When worth it: design-heavy applications, component libraries, marketing pages. Implementation: capture baseline screenshots, compare on each PR, review diffs in a dashboard. Challenges: handle dynamic content (dates, avatars) with masking, manage cross-browser/OS rendering differences, set appropriate diff thresholds. Not worth it for highly dynamic content like dashboards with live data.
Practice this question on its own pageTry a scored practice question, freeComponent tests sit between unit and e2e tests. They render a single component in isolation with its dependencies mocked, test interactions (click, type, select) and verify output. Tools: Playwright Component Testing, Cypress Component Testing, Testing Library. Benefits: faster than e2e, more realistic than unit tests, catch rendering bugs early. Use for: complex form components, interactive widgets, state-heavy components. Do not use for: simple presentational components or integration flows.
Practice this question on its own pageTry a scored practice question, freeApproaches: (1) Playwright sharding, split the suite across machines (separate CI jobs with `--shard`), while workers run tests in parallel inside each shard. (2) CI matrix strategy, run different test groups in parallel jobs. (3) Test splitting by time, use historical timing data to balance shards. (4) Isolated test data, each parallel worker uses its own test accounts/data. Key considerations: avoid shared state between parallel tests, use unique ports/databases per worker, collect and merge reports from all shards (blob reporter per shard, then `npx playwright merge-reports`). Typical speedup: 4x with 4 shards, diminishing returns beyond 8.
Practice this question on its own pageTry a scored practice question, freePlaywright: modern, fast, multi-browser (Chrome, Firefox, WebKit), auto-waits, built-in API testing, great for new projects. Selenium: mature, widest browser support, largest community, best for legacy projects or when you need Java/.NET support. Cypress: developer-friendly, great DX, real-time reloading, but supports Chrome-family browsers, Firefox and experimental WebKit, with no multi-tab support. Choose Playwright for new projects, Selenium for enterprises with existing investment, Cypress when developers will own the tests.
Practice this question on its own pageTry a scored practice question, freeUploads: Use setInputFiles() in Playwright or Cypress `.selectFile()`. For drag-drop uploads, dispatch the drop event programmatically. Downloads: In Playwright, use page.waitForEvent("download"), then verify the file content. In Cypress, intercept the download URL and verify with cy.readFile. Verify both success UI and actual file content. Handle edge cases: large files, wrong file types, multiple files, cancelled uploads.
Practice this question on its own pageTry a scored practice question, freeStructure: (1) Group by feature or domain, not by test type. (2) Shared fixtures and helpers in a common directory. (3) Page objects co-located with their tests or in a dedicated pages/ directory. (4) Config files per environment (dev, staging, prod). (5) Tagging system (@smoke, @regression, @critical) for selective execution. (6) Separate CI jobs for smoke (fast, every PR) vs full regression (nightly). (7) Clear naming conventions: describe blocks match feature areas, test names describe behavior.
Practice this question on its own pageTry a scored practice question, freeStrategy: (1) Run core tests on all target browsers (Chrome, Firefox, Safari/WebKit) in CI. (2) Use Playwright projects config to define browser matrix. (3) Responsive testing: use viewport sizes for mobile, tablet, desktop. (4) Device emulation for mobile-specific features (touch, geolocation). (5) Real device testing for critical flows via BrowserStack/Sauce Labs. (6) Prioritize browsers by user analytics data. Not every test needs every browser, focus cross-browser runs on critical paths.
Practice this question on its own pageTry a scored practice question, freePlaywright route.fulfill() or Cypress cy.intercept() lets you mock API responses. Mock when: testing error states (500, timeout), testing UI with specific data shapes, isolating frontend from backend instability, testing edge cases hard to reproduce. Do not mock for: integration tests verifying real API behavior, smoke tests, or when testing data persistence. Best practice: have both mocked and real API test suites, run mocked in PR CI and real in nightly.
Practice this question on its own pageTry a scored practice question, freeComponents: (1) Test results collection via reporter API (Playwright reporters, JUnit XML). (2) Storage in a database or dashboard tool (Allure, ReportPortal, custom DB). (3) Visualization: pass/fail trends, flaky test tracking, execution time trends, failure categories. (4) Alerting: Slack/email for failures, weekly summary reports. (5) Screenshots and traces attached to failures for debugging. Key: make failures actionable, not just visible. Link failed tests to JIRA tickets automatically.
Practice this question on its own pageTry a scored practice question, freeChallenges: timing, WebSocket connections, multiple users. Approach: (1) Use multiple browser contexts in Playwright to simulate sender and receiver. (2) Test WebSocket messages by intercepting them or checking UI updates. (3) Verify message ordering, delivery confirmation, and offline/reconnect scenarios. (4) Test rate limiting and scroll pagination. (5) Performance: measure time from send to display. Use web-first assertions or expect.poll for async assertions.
Practice this question on its own pageTry a scored practice question, freePriority order: (1) data-testid attributes, most stable, decoupled from styling. (2) ARIA roles and labels (getByRole, getByLabel), user-centric and accessible. (3) Text content (getByText), natural but fragile to copy changes. (4) CSS classes, avoid unless stable and semantic. (5) Never use: auto-generated IDs, position-based selectors (nth-child), deeply nested paths. Work with developers to add test attributes during development. The best selector is one that only changes when the feature changes.
Practice this question on its own pageTry a scored practice question, freePrinciples: (1) Monorepo or shared package for common utilities, page objects, and fixtures. (2) Clear contribution guidelines: PR templates, code review requirements, naming conventions. (3) Documentation: getting started guide, example tests, architecture decision records. (4) Governance: framework team owns core, product teams own their feature tests. (5) Shared CI infrastructure with team-specific test suites. (6) Automated linting and code quality checks on test code. (7) Regular office hours for framework support. The framework should be a product with its own backlog.
Practice this question on its own pageTry a scored practice question, freeApproach: (1) Send requests at the documented rate limit and verify they succeed. (2) Exceed the limit and verify 429 status code with Retry-After header. (3) Test the reset window, wait for the window to pass and verify requests succeed again. (4) Test with different API keys/users to ensure per-user limits. (5) Verify rate limit headers in responses (X-RateLimit-Remaining, X-RateLimit-Reset). (6) Test edge cases: concurrent requests at the limit boundary, burst vs sustained rate.
Practice this question on its own pageTry a scored practice question, freeContract testing verifies that a provider API meets the expectations defined by consumer services, without deploying both together. Tools: Pact, Spring Cloud Contract. Integration testing deploys both services and tests actual communication. Contract testing is faster, runs in isolation, and catches breaking changes early. Use contract testing when: many consumers depend on an API, teams deploy independently, or integration environments are costly. The contract is a shared agreement, not a full integration test.
Practice this question on its own pageTry a scored practice question, freeKey differences: (1) Single endpoint, so test different query shapes, not different URLs. (2) Test query depth limits and complexity to prevent abuse. (3) Test fragments, nested queries, and pagination (cursor-based). (4) Verify type system compliance, fields return correct types. (5) Test error handling, partial failures (some fields resolve, some error). (6) Subscription testing for real-time features. (7) Test query variables and input validation. (8) Performance: N+1 query detection, dataloader effectiveness. Use tools like graphql-request or Apollo testing utilities.
Practice this question on its own pageTry a scored practice question, freeTest cases: (1) First page returns correct count and has next link. (2) Last page has no next link. (3) Empty collection returns empty array. (4) Page size parameter is respected. (5) Cursor/offset consistency when data changes between pages. (6) Invalid page numbers return appropriate errors. (7) Large page sizes are capped. (8) Total count accuracy. (9) Sorting is consistent across pages, no duplicate or missing items. (10) Performance with large datasets. Both offset-based and cursor-based pagination have different edge cases to cover.
Practice this question on its own pageTry a scored practice question, freeAuthentication tests: valid credentials succeed, invalid fail (401), expired tokens rejected, refresh token flow works, rate limiting on auth endpoints. Authorization tests: user can access own resources, cannot access others (IDOR prevention), role-based access works (admin vs user), permission escalation blocked, deleted/deactivated users rejected. Always test the negative cases, a passing auth test suite means nothing if you only tested happy paths.
Practice this question on its own pageTry a scored practice question, freeChallenges: webhooks are asynchronous and push-based. Approach: (1) Set up a webhook receiver (ngrok, webhook.site, or custom endpoint). (2) Trigger the event and verify the webhook is received within the timeout. (3) Verify payload structure, signature, and headers. (4) Test retry logic: return 500 and verify retries with backoff. (5) Test idempotency: process the same webhook twice, verify no duplicate effects. (6) Test signature verification: tamper with the payload and verify rejection. (7) Test ordering: verify events arrive in order or handle out-of-order gracefully.
Practice this question on its own pageTry a scored practice question, freeTest both versions during migration periods. Strategy: (1) Maintain separate test suites per version or use parameterized tests. (2) Verify backward compatibility, v1 consumers still work when v2 is deployed. (3) Test version negotiation (Accept header, URL prefix). (4) Verify deprecation warnings in v1 responses. (5) Test that v1-only fields are not in v2. (6) Contract tests ensure consumers are not broken by version changes. (7) Sunset testing, verify v1 returns 410 Gone after deprecation date.
Practice this question on its own pageTry a scored practice question, freeLayers of testing: (1) Unit tests with mocked third-party responses (fast, reliable). (2) Integration tests with a sandbox environment if the third-party provides one (Stripe test mode, Twilio test credentials). (3) Contract tests to verify your code handles the documented response shapes. (4) Synthetic monitoring in production to catch third-party outages. (5) Test error handling: timeouts, rate limits, malformed responses, partial outages. Never let your tests depend on a live third-party in CI.
Practice this question on its own pageTry a scored practice question, freeUpload tests: valid file types accepted, invalid rejected, size limits enforced, multipart form data correctly parsed, progress tracking works, concurrent uploads handled. Download tests: correct Content-Type and Content-Disposition headers, file integrity (checksum match), range requests for large files, expired download links rejected. Edge cases: empty files, very large files, special characters in filenames, duplicate uploads.
Practice this question on its own pageTry a scored practice question, freeOWASP API Top 10 coverage: (1) BOLA/IDOR, access other users' resources by changing IDs. (2) Broken auth, test token manipulation, session fixation. (3) Excessive data exposure, verify response does not include sensitive fields. (4) Mass assignment, send extra fields and verify they are ignored. (5) SQL/NoSQL injection in query parameters. (6) SSRF, test internal URL blocking. (7) Security headers present (CORS, CSP). Tools: OWASP ZAP, Burp Suite, custom scripts. Run as part of CI, not just penetration testing.
Practice this question on its own pageTry a scored practice question, freeEvery API should return consistent error shapes. Test: (1) All error responses follow the same schema (e.g., { error: { code, message, details } }). (2) Correct HTTP status codes: 400 for bad input, 401 for unauthorized, 403 for forbidden, 404 for not found, 409 for conflict, 422 for validation, 500 for server error. (3) Error messages are helpful but do not leak internals (no stack traces). (4) Validation errors include field-level details. (5) Rate limit errors include Retry-After.
Practice this question on its own pageTry a scored practice question, freeSteps: (1) Organize requests into collections by feature. (2) Use environment variables for base URL, auth tokens, dynamic data. (3) Write test scripts (pm.test assertions) for status codes, response body, headers. (4) Chain requests using collection variables (save ID from POST, use in GET). (5) Use pre-request scripts for data generation. (6) Run with Newman in CI. (7) Set up monitors for scheduled health checks. For code-based approach: use Playwright API testing, supertest, or REST Assured for better version control and IDE support.
Practice this question on its own pageTry a scored practice question, freeEventually consistent systems require patience and polling in tests. Approach: (1) After a write, poll the read endpoint with exponential backoff until the data appears (with a max timeout). (2) Test the consistency window, verify reads return stale data within the window. (3) Test conflict resolution, concurrent writes should resolve predictably. (4) Test cross-region consistency if applicable. (5) Never assume immediate consistency in tests, always use retry/polling assertions. Tools: custom polling helpers, expect.poll() in Playwright.
Practice this question on its own pageTry a scored practice question, freeIdempotent operations should have the same effect on server state when called multiple times. Tests: (1) POST with same idempotency key twice, assert the second response matches the first (same status and body). (2) Verify database state has only one record. (3) Test expired idempotency keys. (4) Test with different payloads but same key, should return error or original result. (5) PUT and DELETE should be naturally idempotent. (6) Concurrent requests with same key should not create duplicates. Common mistake: testing only the response, not the side effects.
Practice this question on its own pageTry a scored practice question, freeLayered strategy: (1) Unit tests within each service, fast, mocked dependencies. (2) Contract tests between services (Pact or similar), run in isolation. (3) Service-level integration tests with real database but mocked external services. (4) End-to-end API tests hitting the full stack through the API gateway. (5) Chaos testing, inject failures in service mesh. (6) Each team owns their service tests, platform team owns e2e. (7) Shared test infrastructure: service mesh test doubles, test data factories, observability for test failures.
Practice this question on its own pageTry a scored practice question, freeInclude performance assertions in functional tests: (1) Assert response time is under the SLA (e.g., p95 < 200ms). (2) Measure and trend response times in CI over time. (3) Set up alerts when response times degrade beyond thresholds. (4) Test under realistic conditions (auth, typical payload sizes). (5) Separate performance benchmarks from functional tests to avoid flakiness. Tools: Playwright request timing, k6 for dedicated load tests, custom timing middleware.
Practice this question on its own pageTry a scored practice question, freeMultipart testing: verify boundary parsing, mixed file + JSON payloads, character encoding in field names and values. Test edge cases: missing required parts, extra unexpected parts, very large parts, empty parts. Content-type testing: verify API rejects unsupported content types, handles charset correctly, responds with appropriate content type. Use tools that let you control raw request construction (curl, custom HTTP clients) for edge case testing.
Practice this question on its own pageTry a scored practice question, freeComponents: (1) API design guidelines (naming, versioning, error formats) that make testing predictable. (2) Shared test libraries: auth helpers, assertion utilities, data factories. (3) Template test suites that teams can fork for new services. (4) Quality gates in CI: minimum test coverage, contract test passage, security scan passage. (5) API documentation as the source of truth (OpenAPI spec), generate tests from specs. (6) Regular cross-team reviews of test approaches. (7) Internal testing handbook with best practices and examples.
Practice this question on its own pageTry a scored practice question, freeLoad testing: simulate expected user traffic to verify the system meets performance SLAs under normal conditions. Stress testing: push beyond expected load to find the breaking point, what happens at 2x, 5x, 10x normal traffic. Soak (endurance) testing: run at normal load for an extended period (hours/days) to find memory leaks, connection pool exhaustion, and gradual degradation. Each answers a different question: "Can it handle normal load?" vs "When does it break?" vs "Does it degrade over time?"
Practice this question on its own pageTry a scored practice question, freeSteps: (1) Run baseline tests against the current system under typical load. (2) Measure key metrics: response time (p50, p95, p99), throughput (requests/sec), error rate, resource utilization. (3) Correlate with real user monitoring (RUM) data if available. (4) Define SLAs based on business requirements and user expectations (e.g., page load under 2s, API response under 200ms p95). (5) Store baselines in version control and compare on every release. (6) Set alerting thresholds at 80% of SLA to catch degradation before users notice.
Practice this question on its own pageTry a scored practice question, freeTechniques: (1) Analyze production traffic patterns (peak hours, geographic distribution, device mix). (2) Model user journeys, not just individual endpoints (browse, search, add to cart, checkout). (3) Add think time between actions (realistic pauses, not machine-gun requests). (4) Use varied test data, different users, products, search terms. (5) Ramp up gradually, not instant spike. (6) Include authentication and session management. (7) Model the ratio of read vs write operations from production. Without realistic behavior, your test results will not predict production performance.
Practice this question on its own pageTry a scored practice question, freeKey metrics: (1) Response time percentiles: p50 (median), p95, p99. Averages hide outliers. (2) Throughput: requests per second the system can handle. (3) Error rate: percentage of failed requests under load. (4) Resource utilization: CPU, memory, disk I/O, network. (5) Connection counts: active connections, connection pool usage. (6) Apdex score: user satisfaction metric combining fast, tolerable, and frustrated requests. (7) Saturation point: the load level where response times start climbing exponentially.
Practice this question on its own pageTry a scored practice question, freeFocus areas: (1) Slow query identification, enable query logging and analyze during load. (2) Connection pool sizing, test with pool exhaustion scenarios. (3) Index effectiveness, monitor query plans under load. (4) Lock contention, concurrent writes to the same rows/tables. (5) Read replica lag under write-heavy load. (6) Cache hit rates, test with cold cache vs warm cache. (7) Data volume, test with production-scale data, not empty databases. Tools: database-specific profilers, pg_stat_statements for Postgres, EXPLAIN ANALYZE.
Practice this question on its own pageTry a scored practice question, freek6 uses JavaScript for test scripts. Key concepts: (1) Virtual Users (VUs) simulate concurrent users. (2) Stages define ramp-up/down patterns. (3) Checks are assertions (status code, response time). (4) Thresholds define pass/fail criteria (p95 < 500ms). (5) Groups organize requests into logical transactions. (6) Tags enable filtering results by endpoint/feature. Typical script: export options with stages, export default function with http.get/post calls and checks. Run with k6 run script.js or k6 cloud run script.js for distributed load.
Practice this question on its own pageTry a scored practice question, freeTests: (1) Cache hit ratio: request the same resource multiple times, verify subsequent requests are faster and served from cache (check X-Cache headers). (2) Cache invalidation: update content, verify the cache serves fresh content after TTL or purge. (3) Geographic distribution: test from multiple regions to verify edge server performance. (4) Cache stampede: expire a popular resource and send concurrent requests, verify the origin is not overwhelmed. (5) Bypass testing: verify cache-busting parameters work. (6) Compare response times with and without CDN.
Practice this question on its own pageTry a scored practice question, freeUnique challenges: cold starts, concurrency limits, timeout constraints. Tests: (1) Cold start latency: invoke after idle period, measure initialization time. (2) Warm invocation performance: rapid successive calls. (3) Concurrency scaling: send N concurrent requests, verify auto-scaling works and response times are acceptable. (4) Memory and timeout limits: test with varying payload sizes. (5) Cost modeling: estimate cost per request under expected load. (6) Compare cold vs warm performance across memory allocations. Tools: k6, Artillery, AWS Lambda Power Tuning.
Practice this question on its own pageTry a scored practice question, freeDetection: (1) Soak test: run steady load for 4-24 hours, monitor memory usage trends. (2) A consistent upward trend in memory without corresponding load increase indicates a leak. (3) Monitor garbage collection frequency and duration. Resolution: (4) Use profiling tools (Node.js heap snapshots, Chrome DevTools, Java VisualVM). (5) Compare heap snapshots at intervals to find growing objects. (6) Common causes: unclosed connections, event listener accumulation, growing caches without eviction, global variables. (7) After fix, re-run soak test to verify memory is stable.
Practice this question on its own pageTry a scored practice question, freeSteps: (1) Gather business projections: expected user growth, seasonal peaks, marketing campaigns. (2) Baseline current capacity: max throughput, resource utilization at peak. (3) Model the scaling curve: does performance degrade linearly or exponentially with load? (4) Identify bottlenecks: which component saturates first (CPU, database, network)? (5) Plan scaling strategy: horizontal vs vertical, auto-scaling thresholds. (6) Cost model: infrastructure cost per user at different scales. (7) Validate with load tests at projected capacity. (8) Build headroom: plan for 1.5-2x projected peak.
Practice this question on its own pageTry a scored practice question, freeSimulate real-world network conditions: (1) Latency injection: add 50-500ms delay to simulate mobile/satellite networks. (2) Bandwidth throttling: limit to 3G/4G speeds. (3) Packet loss: simulate unreliable connections (1-5% loss). (4) Test timeout handling: verify the application gracefully handles slow responses. (5) Test with different geographic regions (via CDN or cloud region testing). Tools: tc (Linux traffic control), Chrome DevTools throttling, k6 with custom scenarios, Toxiproxy for service-level network simulation.
Practice this question on its own pageTry a scored practice question, freeGatling is a code-first performance testing tool with Java and JavaScript/TypeScript SDKs and a DSL for writing simulations. Strengths: detailed HTML reports out of the box, excellent for CI integration, handles very high load efficiently (non-blocking I/O), recorder for capturing scenarios. Choose over k6 when: team writes Java or JavaScript/TypeScript, need beautiful built-in reports, testing WebSocket-heavy applications. Choose over JMeter when: need code-based tests (version control friendly), better performance at scale (JMeter uses threads, Gatling uses non-blocking I/O). All three are viable, pick based on team skills and reporting needs.
Practice this question on its own pageTry a scored practice question, freeApproach: (1) Lightweight smoke performance tests on every PR (5-10 seconds, verify no major regression). (2) Full performance suite on merge to main or nightly (realistic load, 5-30 minutes). (3) Threshold-based gates: fail the build if p95 > SLA or error rate > 1%. (4) Trend tracking: store results over time, alert on gradual degradation. (5) Isolated test environment that mirrors production. (6) Parameterized tests: different profiles for smoke vs full load. Tools: k6 with GitHub Actions, Gatling with Jenkins, custom scripts with threshold assertions.
Practice this question on its own pageTry a scored practice question, freeBefore migration: (1) Benchmark current query performance and throughput. (2) Test migration on a production-scale copy of the database, not a small test database. (3) Measure migration execution time and lock duration. During migration: (4) Test that the application remains available (zero-downtime migration). (5) Monitor query performance during the migration. After migration: (6) Re-run performance benchmarks and compare. (7) Test with production-like data volume. Key: always test migrations with realistic data sizes, a migration that takes 1 second on test data might take 30 minutes on production.
Practice this question on its own pageTry a scored practice question, freeChaos engineering deliberately introduces failures to test system resilience: kill a service, introduce network latency, fill a disk, exhaust memory. Relation to performance: (1) Performance under failure, how does the system perform when a dependency is slow or down? (2) Failover performance, how quickly does the system recover? (3) Graceful degradation, does the system serve partial results or error completely? Tools: Chaos Monkey, Litmus, Gremlin, Toxiproxy. Start small: inject one failure at a time, in non-production, with monitoring in place. Graduate to production chaos as confidence grows.
Practice this question on its own pageTry a scored practice question, freeChallenges: persistent connections, bidirectional communication, connection limits. Tests: (1) Maximum concurrent connections: ramp up connections and find the ceiling. (2) Message throughput: send N messages/second across all connections. (3) Broadcast latency: measure time from server event to all clients receiving it. (4) Reconnection storm: disconnect all clients simultaneously and test reconnection handling. (5) Memory per connection: monitor server memory as connections grow. Tools: k6 with WebSocket support, Artillery, custom Node.js scripts with ws library.
Practice this question on its own pageTry a scored practice question, freeTranslate technical metrics to business impact: (1) Instead of "p95 response time is 2.3s," say "5% of customers will wait over 2 seconds, research shows this causes 15% abandonment." (2) Use before/after comparisons with visual charts. (3) Show the cost of inaction: revenue at risk, customer churn, support ticket volume. (4) Traffic light summaries: green/yellow/red for key SLAs. (5) Compare to competitors if benchmarks are available. (6) Focus on user experience metrics (Core Web Vitals, Apdex) rather than infrastructure metrics.
Practice this question on its own pageTry a scored practice question, freeComponents: (1) Multi-region load generation: run tests from each region where users are. (2) CDN and edge caching validation: verify content is served from local edge nodes. (3) Database replication lag: measure read consistency across regions. (4) DNS and routing performance: test failover between regions. (5) User journey testing from each region: account for network latency in SLAs. (6) Time-zone-based load patterns: simulate realistic global traffic distribution. (7) Compliance: data residency requirements may affect architecture and performance. Infrastructure: distributed k6 agents, cloud-based load generation (Grafana Cloud k6).
Practice this question on its own pageTry a scored practice question, freeKey principles: (1) Only build and test what changed, use file path filters or tools like Nx/Turborepo to detect affected projects. (2) Shared CI steps for common operations (linting, type checking). (3) Parallel jobs per service for independent build/test. (4) Dependency-aware ordering: if service A depends on library B, test B first. (5) Caching: node_modules, build artifacts, Docker layers. (6) Selective deployment: only deploy changed services. Tools: GitHub Actions path filters, Nx affected commands, Bazel for large monorepos.
Practice this question on its own pageTry a scored practice question, freeTiers: (1) Local: Docker Compose for running dependencies locally. (2) CI: ephemeral environments spun up per PR, torn down after merge. (3) Staging: long-lived environment mirroring production for integration and manual testing. (4) Production: monitoring and synthetic tests only. Best practices: infrastructure as code (Terraform, Pulumi), database seeding scripts, environment parity (same OS, same database version), secrets management (Vault, AWS Secrets Manager). Avoid: shared environments where tests interfere with each other.
Practice this question on its own pageTry a scored practice question, freeCanary deployment routes a small percentage of traffic (1-5%) to the new version. Testing approach: (1) Automated health checks on the canary (error rate, latency, CPU). (2) Comparison metrics: canary vs baseline (old version). (3) Automatic rollback if canary metrics exceed thresholds. (4) Gradual promotion: 1% to 5% to 25% to 100% over hours/days. (5) Feature flag integration: canary + feature flags for fine-grained control. (6) QA smoke tests against the canary endpoint specifically. Tools: Kubernetes canary with Istio/Argo Rollouts, AWS CodeDeploy, Vercel preview deployments.
Practice this question on its own pageTry a scored practice question, freeLayers of security scanning: (1) Static Analysis (SAST): scan code for vulnerabilities (Semgrep, SonarQube, CodeQL). (2) Dependency scanning: check for known CVEs (npm audit, Dependabot, Snyk). (3) Secret detection: prevent committed secrets (TruffleHog, GitLeaks). (4) Container scanning: scan Docker images (Trivy, Snyk Container). (5) DAST: dynamic testing against running application (OWASP ZAP). Run SAST and dependency scanning on every PR (fast). Run DAST nightly (slow). Block merges on critical/high vulnerabilities.
Practice this question on its own pageTry a scored practice question, freeSteps: (1) Migrations versioned in code alongside application changes. (2) CI runs migrations against a test database before tests. (3) Validate rollback: every migration has an up and down path. (4) Zero-downtime migrations: use expand-and-contract pattern (add new column, deploy code that writes to both, migrate data, deploy code that reads from new, drop old). (5) Lock timeout protection: set statement_timeout to prevent long-running migrations from blocking production. (6) Test with production-scale data before deploying.
Practice this question on its own pageTry a scored practice question, freeGitOps uses Git as the single source of truth for infrastructure and deployments. Benefits for QA: (1) Full audit trail: every change is a git commit with who/what/when. (2) Easy rollback: revert a commit to roll back a deployment. (3) Reproducible environments: environment config is versioned. (4) PR-based workflows for infrastructure changes, same review process as code. (5) Self-healing: if someone manually changes something, GitOps reverts it to match git. Tools: ArgoCD, Flux for Kubernetes. QA benefit: test environment parity is guaranteed by code, not manual setup.
Practice this question on its own pageTry a scored practice question, freeTechniques: (1) Multi-stage builds: separate build and runtime stages. (2) Layer caching: order Dockerfile commands from least to most frequently changed (COPY package.json before COPY .). (3) .dockerignore: exclude node_modules, .git, test files from context. (4) BuildKit features: parallel stage execution, mount caches. (5) Use slim/alpine base images to reduce image size. (6) Pin exact versions for reproducibility. (7) CI-level caching: cache Docker layers between runs (GitHub Actions cache, registry-based cache). Typical improvement: 10x faster builds with proper caching.
Practice this question on its own pageTry a scored practice question, freeImplementation: (1) Feature flag service (LaunchDarkly, Unleash, or custom). (2) Wrap new features in flag checks. (3) Default flags to off, enable gradually (percentage rollout, user targeting). Testing: (4) Test both flag states (on and off) in CI. (5) Test flag combinations if flags interact. (6) Test flag evaluation performance (should be fast, cached locally). (7) Clean up old flags regularly, they accumulate and become tech debt. (8) Use flags for operational safety (kill switches for expensive features) and gradual rollouts.
Practice this question on its own pageTry a scored practice question, freePrinciples: (1) Never hardcode secrets in code or CI config. (2) Use CI platform secret management (GitHub Secrets, GitLab CI Variables). (3) Rotate secrets regularly and after team member departures. (4) Least privilege: each pipeline step only accesses secrets it needs. (5) Audit: log secret access (not values). (6) For production: use a vault (HashiCorp Vault, AWS Secrets Manager). (7) Test environments should use different secrets than production. (8) Secret scanning in CI to catch accidental commits (pre-commit hooks, CI checks).
Practice this question on its own pageTry a scored practice question, freeStrategy: (1) Blocking failures: critical test failures halt the pipeline, no deployment. (2) Non-blocking warnings: flaky tests or low-priority issues are reported but do not block. (3) Failure categorization: infrastructure failure (retry), flaky test (quarantine and investigate), real regression (block). (4) Fast feedback: run fastest tests first (unit, then integration, then e2e). (5) Failure notifications: Slack/email with failure details and links. (6) Automatic issue creation for persistent failures. Never just re-run and hope, investigate root cause.
Practice this question on its own pageTry a scored practice question, freeShift-left means moving testing earlier in the development lifecycle. Implementation: (1) Unit tests written alongside code (TDD). (2) Static analysis and linting on every save (IDE integration). (3) Pre-commit hooks for formatting and basic checks. (4) PR-level tests: unit and integration tests run before code review. (5) Design reviews that include testability considerations. (6) Contract tests catch integration issues before deployment. (7) Security scanning in the IDE (Snyk, SonarLint). The goal: find bugs when they are cheapest to fix, during development, not in production.
Practice this question on its own pageTry a scored practice question, freeBlue-green: maintain two identical production environments (blue and green). Process: (1) Blue is live, deploy new version to green. (2) Run smoke tests against green. (3) Switch load balancer to green. (4) Monitor for issues. (5) If problems, instantly switch back to blue. Benefits: zero-downtime deployment, instant rollback. Challenges: database state must be compatible with both versions (expand-contract migrations), session management during switch, cost of running two environments. Suitable for: critical applications where rollback speed matters.
Practice this question on its own pageTry a scored practice question, freeTesting layers: (1) Linting and validation: terraform validate, tflint. (2) Plan review: terraform plan output in PR comments. (3) Unit tests: test modules in isolation with mock providers (Terratest, terraform test). (4) Integration tests: apply to a test environment, verify resources exist, destroy. (5) Policy tests: OPA/Sentinel to enforce organizational rules (no public S3 buckets, required tags). (6) Drift detection: regularly plan against production to detect manual changes. (7) Cost estimation: infracost to predict cost impact of changes.
Practice this question on its own pageTry a scored practice question, freeObservability stack for test environments: (1) Logging: structured logs aggregated (ELK, Loki). (2) Metrics: application and infrastructure metrics (Prometheus, Datadog). (3) Tracing: distributed traces to debug test failures (Jaeger, Honeycomb). (4) Alerting: test environment health checks. (5) Dashboards: CI pipeline metrics, test pass rates, deployment frequency. Why it matters for QA: when a test fails, you need more than "assertion failed," you need the server logs, database state, and request traces to diagnose. Invest in observability for test environments like you would for production.
Practice this question on its own pageTry a scored practice question, freeMobile-specific challenges: app store review, device fragmentation, longer build times. Approach: (1) Build automation: Fastlane for iOS/Android builds, signing, and distribution. (2) Testing: unit tests in CI, UI tests on emulators/simulators, device farm for real devices (Firebase Test Lab, BrowserStack). (3) Distribution: internal testing via TestFlight (iOS) and internal tracks (Android). (4) Versioning: automated version bumps tied to git tags. (5) Code signing: securely manage certificates and provisioning profiles in CI. (6) Parallel builds: iOS and Android build simultaneously.
Practice this question on its own pageTry a scored practice question, freeRollback options: (1) Redeploy previous version: simplest, works if no database changes. (2) Feature flag disable: turn off the problematic feature without deploying. (3) Blue-green switch: instant traffic switch to previous environment. (4) Database rollback: reverse migration if the schema changed (risky, test thoroughly). (5) GitRevert + redeploy: revert the commit and run the full pipeline. Best practice: decide the rollback strategy before deploying, not during an incident. Automate rollback triggers based on error rate spikes or health check failures.
Practice this question on its own pageTry a scored practice question, freeDesign principles: (1) Independent pipelines per service: each service builds, tests, and deploys independently. (2) Shared pipeline templates for consistency. (3) Contract tests between services run in a dedicated stage. (4) Service mesh for traffic management during deployments. (5) Centralized deployment dashboard showing all service versions. (6) Automated integration tests in a shared staging environment. (7) Progressive delivery: canary per service. (8) Centralized secret management and config. Key: optimize for team autonomy while maintaining system-level quality gates.
Practice this question on its own pageTry a scored practice question, freeIn DevOps, QA shifts from gate-keeper to quality enabler: (1) Build test automation infrastructure that developers use. (2) Define quality criteria for CI pipelines. (3) Champion observability, help teams understand production behavior. (4) Shift-left: bring testing expertise into design and development phases. (5) Own end-to-end test suites that validate the full system. (6) Analyze production incidents for testing gaps. (7) Educate: teach developers to write better tests, help ops understand test requirements. QA does not disappear in DevOps, it becomes embedded in everything.
Practice this question on its own pageTry a scored practice question, freeExploratory testing is simultaneous learning, test design, and execution. You explore the application without predefined test cases, using your domain knowledge and intuition to find bugs. Use when: (1) New feature with minimal documentation. (2) After scripted tests pass, to find edge cases. (3) Under time pressure, highest bug-finding ROI. (4) For usability and UX evaluation. Structure it with session-based testing: set a charter ("Explore checkout flow focusing on error handling"), time-box it (45-90 minutes), and document findings in a session report.
Practice this question on its own pageTry a scored practice question, freeA good bug report contains: (1) Clear title: "[Component] Specific behavior description." (2) Steps to reproduce: numbered, starting from a clean state. (3) Expected result: what should happen. (4) Actual result: what actually happened. (5) Environment: browser, OS, device, user account. (6) Evidence: screenshots, video, console errors, network logs. (7) Severity and priority assessment. (8) Workaround if known. Bad example: "Login is broken." Good example: "Login page shows spinner indefinitely when submitting valid credentials on Firefox 120 / macOS, works on Chrome."
Practice this question on its own pageTry a scored practice question, freeTest coverage measures what percentage of code/features is exercised by tests. Types: (1) Code coverage (line, branch, function): measured by tools like Istanbul/nyc. (2) Requirements coverage: which requirements have tests. (3) Risk coverage: which risk areas are tested. Limitations: (1) High coverage does not mean high quality, 100% line coverage can still miss bugs. (2) Coverage measures execution, not assertion quality. (3) Chasing coverage numbers leads to low-value tests. (4) Cannot cover all input combinations. Use coverage as a guide to find untested areas, not as a quality metric.
Practice this question on its own pageTry a scored practice question, freeStrategy: (1) Automate regression tests for core flows, run on every PR. (2) Risk-based selection: focus on areas affected by the current sprint changes. (3) Maintain a lightweight regression checklist for manual spot-checks. (4) Expand automation each sprint: the new feature test becomes next sprint's regression test. (5) Full regression before major releases (automated). (6) Exploratory regression: time-boxed sessions around changed areas. Key: regression testing should not be a bottleneck. If it takes more than 1 hour, automate more.
Practice this question on its own pageTry a scored practice question, freeRisk-based testing prioritizes testing effort based on: (1) Likelihood of failure: new code, complex logic, historically buggy areas. (2) Impact of failure: revenue-critical flows, security-sensitive features, data integrity. Implementation: (1) Create a risk matrix mapping features to likelihood and impact. (2) Assign testing depth: high risk = thorough testing, low risk = smoke test only. (3) Update risk assessment each sprint based on code changes. (4) Use risk to guide automation priority. This ensures limited testing time is spent where it matters most.
Practice this question on its own pageTry a scored practice question, freeInternationalization (i18n) testing: (1) Verify all user-facing strings are externalized, not hardcoded. (2) Test with long strings (German is ~30% longer than English). (3) Right-to-left (RTL) layout for Arabic, Hebrew. (4) Date, time, currency, and number formatting per locale. (5) Character encoding: test with CJK characters, emojis, special characters. Localization (l10n) testing: (6) Verify translations are accurate and contextually appropriate. (7) Test locale switching without data loss. (8) Verify images and icons are culturally appropriate.
Practice this question on its own pageTry a scored practice question, freeThe test pyramid has three layers: (1) Base (most tests): Unit tests. Fast, isolated, test individual functions/components. (2) Middle: Integration tests. Test component interactions, API endpoints, database queries. (3) Top (fewest tests): End-to-end tests. Full user flows through the UI. In practice: aim for 70% unit, 20% integration, 10% e2e. Unit tests give fast feedback, e2e tests give confidence. Common anti-pattern: the ice cream cone, lots of manual/e2e tests and few unit tests. This is slow and fragile. Invert it gradually by adding unit tests as you fix bugs.
Practice this question on its own pageTry a scored practice question, freeStrategies by environment: (1) Local/CI: generated test data using factories (faker.js), reset database between test runs. (2) Staging: curated seed data that represents realistic scenarios, refreshed periodically from anonymized production data. (3) Production testing: synthetic test accounts with clear naming conventions (test_*, qa_*), excluded from analytics. Key principles: tests should never depend on pre-existing data, data cleanup should be automatic, sensitive data must be anonymized, and test data should cover edge cases (empty states, maximum values, special characters).
Practice this question on its own pageTry a scored practice question, freeMutation testing introduces small changes (mutations) to source code and checks if tests catch them. Mutations: change operators (+ to -), flip conditions (true to false), remove statements. If tests still pass with a mutation, those tests are weak. Benefits: (1) Reveals gaps that code coverage misses. (2) Forces meaningful assertions. (3) Identifies dead code. Tools: Stryker (JavaScript/TypeScript), PIT (Java). Limitations: slow (runs tests many times), can produce equivalent mutants (mutations that do not change behavior). Use on critical code paths, not entire codebase.
Practice this question on its own pageTry a scored practice question, freeTest areas: (1) Consent: verify opt-in flows work, preferences are saved, and data collection respects consent. (2) Right to access: verify data export contains all user data. (3) Right to deletion: verify account deletion removes all personal data (including backups and logs). (4) Data minimization: verify only necessary data is collected. (5) Cookie consent: verify no tracking before consent. (6) Third-party data sharing: verify data is not sent to analytics/marketing services without consent. (7) Data breach notification: verify incident response process is testable. Use automated compliance checks in CI.
Practice this question on its own pageTry a scored practice question, freeThe balance depends on risk: (1) High-risk changes (auth, payments, data): thorough testing, full regression, security review. (2) Medium-risk (new features, major UI changes): targeted testing, affected area regression, smoke test the rest. (3) Low-risk (copy changes, styling, config): automated checks, quick manual verification. Techniques to increase speed without sacrificing quality: (1) Parallelized test execution. (2) Risk-based test selection. (3) Smoke tests on every PR, full regression nightly. (4) Shift-left: catch issues in code review and unit tests.
Practice this question on its own pageTry a scored practice question, freeVerification: "Are we building the product right?" Checks that the implementation matches the specification. Examples: code reviews, unit tests, integration tests, static analysis. Validation: "Are we building the right product?" Checks that the product meets user needs. Examples: user acceptance testing (UAT), beta testing, usability testing, A/B testing. Both are necessary. You can build a perfectly coded feature (verification passes) that nobody wants to use (validation fails). QA covers both: technical correctness and user value.
Practice this question on its own pageTry a scored practice question, freeKey sections: (1) Scope: what is being tested and what is explicitly out of scope. (2) Test levels: unit, integration, e2e, performance, security. (3) Test types per feature: functional, non-functional, regression. (4) Environment strategy: where each test level runs. (5) Tools and frameworks: with justification for each choice. (6) Entry/exit criteria: when testing starts and when we are done. (7) Risk assessment: highest-risk areas and mitigation strategy. (8) Roles and responsibilities: who writes which tests. (9) Schedule and milestones. (10) Defect management process. Keep it living: update it each sprint, not a shelf document.
Practice this question on its own pageTry a scored practice question, freeTechniques: (1) Boundary value analysis: test at limits (0, 1, max, max+1). (2) Equivalence partitioning: group inputs into classes and test one from each. (3) Error guessing: based on experience, what typically breaks? (4) Negative testing: invalid inputs, empty fields, SQL injection, XSS payloads. (5) State transition testing: test all valid and invalid state changes. (6) Network failures: offline, slow connection, timeout. (7) Concurrent access: two users editing the same record. (8) Resource exhaustion: disk full, memory low. Document edge cases in a shared catalog so the whole team can reference them.
Practice this question on its own pageTry a scored practice question, freeAcceptance criteria (AC) define the conditions a feature must meet to be accepted by the product owner. Role in testing: (1) AC become test cases, each criterion maps to at least one test. (2) They provide a shared understanding between developers, QA, and product. (3) Well-written AC are testable, specific, and measurable. (4) Use Given-When-Then format for clarity. (5) QA should participate in AC writing during refinement, not just receive them. Example: "Given a logged-in user, when they click Delete Account and confirm, then their data is removed and they are redirected to the homepage."
Practice this question on its own pageTry a scored practice question, freeMetrics to track: (1) Defect escape rate: bugs found in production vs total bugs found. Lower is better. (2) Test execution time: how fast is the feedback loop? (3) Defect detection efficiency: percentage of defects found before release. (4) Automation ROI: time saved vs time invested in automation. (5) Flaky test rate: percentage of tests that fail intermittently. (6) Mean time to detect: how quickly do tests catch regressions? Improvement: analyze escaped defects monthly, identify patterns (which area, which test level missed it), and add targeted tests. Focus on the defect escape rate as the primary metric.
Practice this question on its own pageTry a scored practice question, freeComponents: (1) Governance: testing standards, tool recommendations, best practice guides. (2) Enablement: training programs, mentorship, internal workshops. (3) Shared services: test infrastructure, CI templates, shared test libraries. (4) Community: regular meetings, internal conferences, Slack channels for test discussion. (5) Innovation: evaluate new tools, run proof-of-concepts, share findings. (6) Metrics: organization-wide quality dashboard. Staffing: mix of embedded QA engineers on product teams and a core CoE team providing frameworks and guidance. Key: the CoE should serve teams, not control them.
Practice this question on its own pageTry a scored practice question, freeSmoke testing: broad, shallow check that the most critical features work after a build or deployment. "Does the application launch and can users log in?" Run first, fast, and frequently. Sanity testing: narrow, focused check that a specific fix or feature works correctly. "The login bug was fixed, does login work now?" Run after a targeted change. Regression testing: comprehensive check that existing functionality was not broken by recent changes. "Do all the features that worked before still work?" Run before releases. Order: smoke first (is it stable enough to test?), then sanity (does the specific fix work?), then regression (is everything else still fine?).
Practice this question on its own pageTry a scored practice question, freeStop reading answers. Start practicing them.
AssertHired's AI interviewer asks follow-up questions, scores your responses across 4 QA-specific dimensions, and gives you actionable feedback.
Answer a Free QuestionFree to start · 7-day trial on paid plans
More Interview Prep Resources
Explore our role-specific guides and tool-specific question banks.
Go Further with Digital Resources
Go beyond practice interviews - get the guides, drills, and frameworks that top QA engineers use.
Free QA career tools, no account needed
Instant and private, everything runs in your browser. Try them before you sign up.
QA Resume Checker
Instant 0-100 score on automation keywords, impact, and ATS formatting.
QA Cover Letter Generator
A tailored 3-paragraph QA cover letter from your resume and a job post.
QA Application Tracker
Drag-and-drop kanban to track every QA application from Applied to Offer.
QA Take-Home Test Generator
A realistic take-home assignment with a scenario, tasks, and a rubric.
QA LinkedIn Headline Generator
A recruiter-searchable headline, About section, and skills list.
QA STAR Story Builder
Structure a QA behavioral answer with the STAR method and instant checks.
QA Bug Report Generator
Build a clean, reproducible bug report for Markdown, Jira, or plain text.
Boundary Value Analysis Generator
Generate boundary value and equivalence partitioning test cases from a range.
QA Metrics Calculator
Calculate DRE, defect leakage, defect density, and pass rate with interpretation.
QA Test Plan Generator
Build a structured test plan (scope, approach, criteria, risks) in Markdown.
QA Salary Calculator
Estimate QA, SDET, and automation tester pay by level, market, and skills.
QA Offer Evaluator
See total comp, a counter range, and a ready-to-send negotiation message.
Ready to Ace Your QA Interview?
Stop reading answers, start practicing them live with AI that knows QA.
Join 700+ QA engineers already practicing with AssertHired.
A test passes locally but fails in CI about one run in five. Walk me through what you check first, and why.
This single answer is scored on four dimensions: Technical accuracy · Coverage · Clarity · Best practices.
Rather skip ahead? Create a free account