QA Fundamentals Senior cheat sheet: interview answers

Every question of this level with its correct answer and explanation, on one page for a quick review before the interview.

  1. 1. What should an organization-level test strategy define?

    Correct answer: Quality goals, test levels and types, tooling and how risk drives effort

    A strategy gives consistent principles across teams (what to automate, which environments, how to report), while each project's plan adapts them to its own scope and risks.

  2. 2. A team ships daily, but releases still fail in production. What is usually the most effective first move?

    Correct answer: Analyse escaped defects to find which test levels missed them

    Escaped defect analysis shows the real gap: missing contract tests, untested configs, no monitoring. Adding slow gates everywhere hurts flow without targeting the cause.

  3. 3. How do you measure the effectiveness of a QA process without rewarding the wrong behaviour?

    Correct answer: Track escaped defects, impact and lead time rather than bug counts

    Bug counts and test case counts are easy to game and pit testers against developers. Outcome metrics (production incidents, time to detect, customer impact) reflect quality.

  4. 4. Which DORA metric relates most directly to release quality?

    Correct answer: Change failure rate

    Change failure rate is the share of deployments causing a failure in production. With time to restore service, it balances speed metrics like deployment frequency.

  5. 5. What is the cost of quality model?

    Correct answer: Prevention and appraisal costs versus internal and external failure costs

    Investing in prevention (reviews, training) and appraisal (testing) reduces failure costs. External failures (in production) are usually the most expensive: support, refunds, reputation.

  6. 6. How would you introduce testing into a legacy product with no tests?

    Correct answer: Start with risk-based smoke and characterization tests on critical flows

    Characterization tests capture current behaviour, so refactoring has a safety net. Coverage grows where the code changes, guided by risk, not by a coverage target.

  7. 7. When does it make sense to have fewer unit tests and more integration tests?

    Correct answer: When most risk lies in the interaction between components

    In a thin service that mostly glues a database and APIs together, unit tests mock everything and check little. Integration tests with real dependencies (containers) give more confidence.

  8. 8. How should a team decide what NOT to test?

    Correct answer: By explicit risk assessment, documenting accepted risks

    Testing everything is impossible, so leaving areas out is normal. Making it explicit ('admin export: smoke only, low usage') lets stakeholders accept or challenge the risk.

  9. 9. What is a good way to make testers effective in cross-functional teams?

    Correct answer: Embed them in teams, with a community of practice across teams

    Embedded testers get context and early involvement; a guild or chapter keeps practices, tooling and skills consistent across teams.

  10. 10. Why are test automation frameworks treated as products?

    Correct answer: They need design, maintenance and ownership like any code

    Unmaintained frameworks rot: flaky helpers, duplicated page objects, slow suites. Code review, refactoring and clear ownership keep automation an asset.

  11. 11. How do you estimate the ROI of test automation?

    Correct answer: Compare build and maintenance cost with saved effort and risk reduced

    Automation costs time to write and to maintain. It pays off for tests run often over a long period, and through faster feedback that prevents costly defects.

  12. 12. What is the main risk of a large UI end-to-end suite as the only safety net?

    Correct answer: Slow, flaky feedback that teams learn to ignore

    Hour-long, unreliable suites delay releases and hide real failures among false ones. Pushing checks to lower levels keeps feedback fast and trustworthy.

  13. 13. How would you reduce flakiness across a large test suite?

    Correct answer: Measure flake rates, quarantine, fix root causes and set ownership

    Data on which tests flake and why (timing, shared state, environment) turns flakiness into a backlog. Blind retries and long timeouts only hide problems.

  14. 14. What does 'testing in production' responsibly involve?

    Correct answer: Feature flags, canaries, monitoring and quick rollback

    Production testing complements, not replaces, earlier testing. Limits on blast radius and fast detection make it safe.

  15. 15. What are synthetic checks?

    Correct answer: Scripted user journeys run regularly against production

    A synthetic check logs in and buys a test product every few minutes. It detects outages even when no real users are active, for example at night.

  16. 16. How do SLOs connect to quality work?

    Correct answer: They define acceptable reliability and guide where to invest

    An SLO like '99.9% of checkouts succeed' turns quality into a measurable target. An error budget shows when to slow feature work and focus on reliability.

  17. 17. What is chaos engineering?

    Correct answer: Deliberately injecting failures to verify a system's resilience

    Experiments like killing an instance or adding latency check that the system degrades gracefully. They start small, with a hypothesis and a way to stop.

  18. 18. What should a QA lead check when an A/B test is planned?

    Correct answer: Both variants work, assignment is stable and metrics are tracked

    A broken variant skews results; unstable assignment (users switching groups) and missing analytics events make the experiment useless.

  19. 19. How do contract tests change testing in a microservice system?

    Correct answer: They catch API breaks per service without full end-to-end environments

    Each consumer's expectations are verified in the provider's pipeline. Teams can deploy independently with confidence, using only a few true E2E tests.

  20. 20. What is the main challenge of end-to-end test environments for microservices?

    Correct answer: Keeping many services, versions and data consistent and stable

    Shared staging environments drift, break and become bottlenecks. Ephemeral environments, service virtualization and contract tests reduce dependence on them.

  21. 21. What are ephemeral test environments?

    Correct answer: Short-lived environments created per branch or pull request

    Spinning up an isolated environment for each change avoids conflicts between teams and lets tests run on exactly the code under review.

  22. 22. How should test data be managed for parallel automated tests?

    Correct answer: Each test creates isolated data and cleans up or uses unique IDs

    Shared records cause collisions when tests run in parallel. Factories, unique identifiers and API-based setup keep tests independent and fast.

  23. 23. What does model-based testing do?

    Correct answer: Generates tests from a model of the system's behaviour

    A state machine or flow model of the system can produce many test paths automatically, including unusual sequences humans wouldn't think of.

  24. 24. What is property-based testing?

    Correct answer: Checking that a property holds for many generated inputs

    Instead of examples, you state invariants like 'decode(encode(x)) equals x'. The tool generates and shrinks inputs to find minimal failing cases.

  25. 25. What does a mutation score tell you that coverage doesn't?

    Correct answer: Whether tests actually detect changes in the covered code

    Coverage shows code was run; mutation testing shows tests would fail if it were wrong. Low mutation scores point to weak assertions.

  26. 26. How do you test a feature that depends on the current date and time?

    Correct answer: Control time through an injectable clock or test hooks

    Testing expiry, schedules and time zones requires controlling 'now'. A fake clock makes the tests fast and deterministic, including edge cases like DST changes.

  27. 27. Which bugs are typical around daylight saving time changes?

    Correct answer: Missing or duplicated hours breaking schedules and durations

    On DST change days a local day has 23 or 25 hours. Jobs scheduled at 02:30 may run twice or not at all, and durations computed from local times can be wrong.

  28. 28. What is a characterization test?

    Correct answer: A test that records current behaviour before changing legacy code

    When nobody knows what the code should do, you capture what it does now. Refactoring is then safe, and intended changes are made deliberately.

  29. 29. How do you test eventual consistency in a distributed system?

    Correct answer: Poll for the expected state within a timeout, not assert at once

    Data may take time to propagate. Assertions that retry until a condition holds (with a sensible limit) are stable and fail clearly when consistency never arrives.

  30. 30. How do you test idempotency of a payment API?

    Correct answer: Repeat the request with the same key and check one charge

    A retried request with the same idempotency key must return the original result without a second charge, including when retries happen concurrently.

  31. 31. What is a quality risk workshop?

    Correct answer: The team identifies and rates product risks to plan testing

    Developers, product, ops and testers list what could go wrong, rate likelihood and impact, and decide on mitigations, many of which are not testing at all.

  32. 32. Which mitigations besides testing can reduce a product risk?

    Correct answer: Design changes, monitoring, feature flags and rollback plans

    Some risks are cheaper to reduce by design (validation, limits) or detect quickly in production than to test exhaustively.

  33. 33. How do you make a release decision when known bugs remain?

    Correct answer: Weigh their impact and workarounds against the value of releasing

    Zero known bugs is rarely realistic. Testers provide the risk picture; product and business decide, ideally with mitigations like flags or release notes.

  34. 34. What is the tester's role in a production incident post-mortem?

    Correct answer: Identify why tests didn't catch it and improve the safety net

    Blameless post-mortems look for system gaps: missing test levels, untested configurations, monitoring that didn't alert. Action items should prevent similar escapes.

  35. 35. How should security testing fit into a delivery process?

    Correct answer: Throughout: threat modelling, automated scans and expert testing

    Shifting security left (threat models in design, SAST and dependency scans in CI) and periodic expert testing find issues at different stages.

  36. 36. What is a threat model useful for in testing?

    Correct answer: It shows attack paths and assets, guiding security test design

    Knowing what attackers want and how they could get it (STRIDE, data flow diagrams) points tests at the riskiest entry points.

  37. 37. How do you test authorization thoroughly in a multi-role system?

    Correct answer: Build a role-by-action matrix and test allowed and denied cases

    A matrix of roles × resources × actions makes gaps visible. Denied cases matter most, and must be checked at the API, not only in the UI.

  38. 38. What does a good performance test report include?

    Correct answer: Workload, environment, percentiles, errors and bottlenecks

    Results only make sense with context: what load, on what setup, with which error rates. Bottlenecks and recommendations make the report actionable.

  39. 39. Why run soak (endurance) tests?

    Correct answer: To reveal leaks and degradation that appear only over time

    Memory leaks, growing queues, log files filling disks and connection exhaustion may only appear after hours of steady load.

  40. 40. Why should performance testing start before the end of a project?

    Correct answer: Architecture problems are expensive to fix late

    A chatty API or missing index found early is a small change. Found right before launch, it can force a redesign. Small, regular performance checks in CI help.

  41. 41. How do you test that a system degrades gracefully when a dependency is slow?

    Correct answer: Inject latency or failures, then check timeouts and fallbacks

    Fault injection tools or service virtualization simulate slow and failing dependencies. The system should time out, fall back and show helpful messages instead of hanging.

  42. 42. What is the main benefit of observability for QA?

    Correct answer: Rich logs, metrics and traces explain failures quickly

    When a test or a user hits a problem, correlated logs and distributed traces show where and why. Testers should check that features emit useful telemetry.

  43. 43. How should accessibility be built into a QA process?

    Correct answer: Include it in criteria, automate checks and add manual reviews

    Automated tools catch some issues; keyboard and screen reader checks catch many more. Making accessibility part of the definition of done prevents costly retrofits.

  44. 44. How do you test localization at scale across many languages?

    Correct answer: Pseudo-localization, automated layout checks and native reviewers

    Pseudo-localization (accented, longer strings) finds hard-coded text and layout overflow before translations exist. Native speakers then check meaning and tone.

  45. 45. What is pseudo-localization?

    Correct answer: Replacing UI text with altered, longer strings to find i18n issues

    Text like '[Ŝéţţîñĝš !!!]' shows untranslated strings, truncation and encoding problems without waiting for real translations.

  46. 46. How should compliance requirements (e.g. GDPR) affect testing?

    Correct answer: Test data handling rules: consent, deletion, export and access

    Requirements like 'delete my account' or 'export my data' are features with acceptance criteria. Test data itself must also respect privacy rules.

  47. 47. What is the danger of a test suite that is always green?

    Correct answer: It may not be checking meaningful things anymore

    Tests that never fail might have weak assertions, skipped steps or test the wrong things. Mutation testing and reviewing tests against recent escaped bugs help.

  48. 48. How do you decide between manual and automated testing for a new feature?

    Correct answer: By frequency, stability, risk and whether human judgement is needed

    Exploratory testing of a new UI needs people; a stable API used everywhere deserves automated regression. The answer often changes as the feature matures.

  49. 49. What makes a good regression strategy for a mobile app with many devices?

    Correct answer: Automated core flows on a device cloud plus targeted manual checks

    Device clouds run automated smoke and regression on real devices; manual testing focuses on risky features and device-specific behaviour like cameras or notifications.

  50. 50. How do you test a machine learning feature such as recommendations?

    Correct answer: Check data, offline metrics, edge cases and monitor results live

    ML outputs are probabilistic. Testers check data quality, metrics on held-out data, behaviour for empty or unusual users, bias, and drift after release.

  51. 51. What is the oracle problem?

    Correct answer: It's hard to know the expected result for some outputs

    For complex calculations, ML or large reports, you may not know the exact correct answer. Partial oracles help: invariants, comparisons with old versions, ranges.

  52. 52. What is metamorphic testing?

    Correct answer: Checking relations between outputs of related inputs

    If you can't verify one search result, you can check that adding a filter never returns more results. Such relations work when the exact output is unknown.

  53. 53. How do you test a data migration?

    Correct answer: Compare counts, checksums and samples before and after, plus rollback

    Migrations can silently lose or corrupt data. Reconciliation queries, spot checks of tricky records and a rehearsed rollback reduce the risk.

  54. 54. Why is backward compatibility testing important for APIs and apps?

    Correct answer: Old clients and stored data must keep working after updates

    Mobile users don't update immediately, and partners call old API versions. Tests should run old clients against new servers and new code against old data.

  55. 55. How should a QA lead respond to pressure to skip testing for a deadline?

    Correct answer: Make the risks visible and offer scoped options to decide

    Testers inform decisions; they don't own them alone. Options like testing critical paths only, releasing behind a flag, or delaying a risky part help stakeholders choose.

  56. 56. What is a test maturity model used for?

    Correct answer: Assessing and improving an organization's testing practices

    Models like TMMi describe levels from ad hoc to optimized, giving a roadmap: defined processes, measurement, prevention, continuous improvement.

  57. 57. Why should testers review pull requests?

    Correct answer: They spot missing tests, risky changes and testability issues

    A tester's view of a diff (missing negative tests, changed error messages, new config) prevents bugs before they're merged.

  58. 58. What is the main goal of exploratory testing at senior level?

    Correct answer: Finding unknown risks that scripted tests can't anticipate

    Skilled exploration uses models of the product, heuristics and curiosity to discover failure modes no one wrote down. Findings often become new automated checks.

  59. 59. How do you test a system with many configuration options?

    Correct answer: Combinatorial techniques plus testing real configurations in use

    Pairwise or n-wise combinations cover interactions efficiently, while telemetry shows which configurations customers actually use and deserve priority.

  60. 60. What is defect prevention?

    Correct answer: Changing processes so similar defects don't happen again

    Root cause analysis may lead to clearer requirement templates, new lint rules, shared libraries or checklists, preventing whole classes of bugs.

  61. 61. How should test results be communicated to non-technical stakeholders?

    Correct answer: As risks and readiness in business terms, with a recommendation

    'Checkout is ready; refunds have a known issue affecting 1% of orders, workaround documented' helps a decision. '742 passed, 13 failed' doesn't.

  62. 62. What is a test automation pyramid anti-pattern known as the 'ice cream cone'?

    Correct answer: Mostly manual and UI tests with few unit tests at the bottom

    The inverted shape gives slow, fragile, expensive feedback. Teams fix it by moving checks down to faster, more focused levels.

  63. 63. How does shift-left change a senior tester's daily work?

    Correct answer: More time on requirements, design reviews and test strategy early

    Seniors coach the team, define risks and acceptance criteria early, and build testability in, rather than only checking finished work.

  64. 64. What is the purpose of a release readiness review?

    Correct answer: To check quality evidence, risks and rollback plans before go-live

    Teams review test results, open defects, performance and security status, monitoring and rollback steps, so the release decision is based on evidence.

  65. 65. How do you handle a defect found in production that tests should have caught?

    Correct answer: Add a test reproducing it, fix, then check why it escaped

    A failing test first proves the fix and prevents regression. Analysing the escape improves the process rather than only the code.

  66. 66. What should be tested in a feature flag rollout plan?

    Correct answer: Each flag state, transitions, targeting rules and kill switch

    Users may switch between states mid-session; targeting may leak a feature to the wrong group; the kill switch must work under load.

  67. 67. How do you test caching behaviour?

    Correct answer: Check stale data, invalidation after updates and cache misses

    Typical cache bugs: stale prices after an update, one user's data shown to another, or a cold cache overloading the database after a deploy.

  68. 68. What is a 'test strategy for a third-party integration'?

    Correct answer: Contract checks, sandbox tests, failure simulation and monitoring

    Providers change, go down and return unexpected data. Sandboxes, virtualized failures and production monitoring keep the integration reliable.

  69. 69. What is the main risk of relying only on code coverage targets in a team?

    Correct answer: Teams write tests to hit numbers instead of checking behaviour

    Goodhart's law: when a measure becomes a target, it stops being a good measure. Coverage is useful to find untested areas, not as a quality guarantee.

  70. 70. What are 'quality attributes' in ISO 25010 terms?

    Correct answer: Characteristics like reliability, security and usability

    The model lists characteristics such as functional suitability, performance efficiency, compatibility, usability, reliability, security, maintainability and portability, useful for non-functional test planning.

  71. 71. How do you test for resilience to bad network conditions in a web app?

    Correct answer: Throttle and drop connections, then check retries, errors and state

    DevTools throttling and offline mode reveal double submits, lost form data, infinite spinners and missing error messages.

  72. 72. What is the role of exploratory testing in a highly automated pipeline?

    Correct answer: Finding new risks that automation, by design, doesn't look for

    Automated checks confirm known expectations. Exploration finds the unexpected, and its findings feed new automated checks.

  73. 73. What does a mature bug triage process avoid?

    Correct answer: An ever-growing backlog of bugs nobody will ever fix

    Old bugs that will never be fixed hide important ones. Closing 'won't fix' items explicitly keeps the backlog an honest picture of known risks.

  74. 74. How can testers help reduce the cost of flaky infrastructure?

    Correct answer: Separate infrastructure failures from test failures in reports

    Classifying failures (environment down, test bug, product bug) directs effort correctly and exposes unreliable infrastructure with data.

  75. 75. What is a sign that a team's testing is too late in the process?

    Correct answer: Most defects are found after code is merged or released

    If bugs mostly surface in a test phase or production, feedback loops are too long. Moving checks into design, review and CI shortens them.

  76. 76. Why is 'zero bugs found' in a test cycle not automatically good news?

    Correct answer: It may mean weak tests or untested areas, not perfect quality

    Testing shows the presence of defects, not their absence. Check coverage of risks and whether the tests could have found the expected kinds of bugs.