Test Strategy, Planning, and Risk-Based Prioritization Questions
Deciding what to test, how, in what order, and where to concentrate limited effort. Covers building a test strategy and test plan and the difference between them, scoping coverage against goals and constraints, the automate-versus-manual decision for a specific test, the automation business case (break-even, payback, and how to measure it), balancing speed, quality and cost, and risk-based testing: assessing feature and change risk, severity and likelihood scoring, prioritizing under time pressure, defending coverage trade-offs when the schedule does not allow testing everything, and judging release readiness. The scope is the investment and prioritization DECISION. Which test level a given test belongs at, and how a pipeline run should behave at execution time, are covered separately.
Explain how you would conduct a risk-based testing exercise to prioritize test cases. Show a simple template or scoring model using factors such as business impact, frequency, likelihood of defect, and detectability, and explain how you would convert scores into an automation roadmap.
Sample Answer
Direct answer
A risk-based prioritization exercise scores each candidate test case on a small set of factors (business impact, frequency, likelihood of defect, detectability), combines them into a single number, ranks the backlog by that number, and then converts the ranking directly into a phased automation roadmap: highest-scoring items in the next sprint, mid-scoring items in the next quarter, lowest-scoring items deferred indefinitely.
Structured elaboration
A simple scoring template, each factor scored 1-5:
- Business impact: what happens if this breaks in production (revenue loss, user-facing breakage, silent data issue).
- Frequency: how often this path is exercised by real users or by the pipeline.
- Likelihood of defect: how complex or recently-changed the underlying code is.
- Detectability: how quickly a failure would be noticed if it happened. Score this INVERTED (low detectability, meaning a failure could go unnoticed for a while, is actually a reason to score risk HIGHER, not lower).
Combine as a simple weighted sum or product, rank descending, and convert to a roadmap in tiers: top tier (highest 15-20% of scores) gets automated this sprint; middle tier gets automated over the next one to two quarters as capacity allows; bottom tier stays manual or deferred, revisited only if its risk profile changes (a code area that used to be stable but is now being actively refactored moves up in likelihood of defect, and should be rescored, not left at its original ranking).
The same scoring approach adapts to different contexts without changing its structure: for a time-constrained feature rollout, apply it to the specific edge cases within that feature rather than the whole system, using the same four factors (user impact, frequency, exploitability or likelihood, and detectability) to decide which edge cases get automated first and which are deferred. For a resource-constrained checkout flow, apply it per test case within that one flow to decide which specific cases (cart calculation, payment authorization, promo-code validation) get a minimal day-one automated suite versus which wait. For a reporting or dashboard artifact, the same model still applies: score individual checks (metric correctness, access permissions, refresh timing) by business impact and likelihood, and let the highest-risk checks (a permission leak on a dashboard showing another customer's data, for instance) drive the initial test list even if you only have time for ten checks total before release.
Worked example
Score three test-case candidates on the 1-5 scale (impact, frequency, likelihood, detectability-inverted):
| Test case | Impact | Frequency | Likelihood | Detectability (inverted) | Total |
|---|---|---|---|---|---|
| Payment authorization failure handling | 5 | 5 | 3 | 4 | 17 |
| Search result pagination edge case | 2 | 4 | 2 | 2 | 10 |
| Admin permission boundary check | 5 | 2 | 3 | 5 | 15 |
Payment authorization scores highest (business-critical, frequently exercised, and a failure would be noticed by users immediately but is still worth catching before production). Admin permission boundary is close behind: it runs less often, but a permission leak could go undetected for a long time (hence the high inverted-detectability score), which is exactly the kind of risk this scoring model is designed to surface even though raw frequency is low. Pagination edge case scores lowest and lands in the deferred tier. The roadmap: automate payment authorization this sprint, admin permission boundary within the quarter, pagination edge case only if capacity remains after the higher-risk items are done.
Trade-offs and pitfalls
The biggest pitfall is scoring detectability the wrong direction, treating "we would notice quickly" as a reason to deprioritize, when actually LOW detectability (a silent failure) is the higher-risk case and should push a test UP the ranking, not down. The second pitfall is scoring once and never revisiting: risk profiles shift as code changes, and a roadmap built on a stale ranking tests what used to matter rather than what matters now.
Create a detailed test plan outline for integrating a new third-party payment gateway into an e-commerce platform. Your outline should cover: scope, objectives, test types (functional, integration, security, performance, UAT), environment requirements, test data, schedule, roles, risk mitigation, and entry/exit criteria.
Sample Answer
Direct answer
A test plan for integrating a new third-party payment gateway needs to cover the full outline named in the ask: scope, objectives, the specific test types required, environment and data needs, a schedule, roles, risk mitigation, and entry/exit criteria, each made concrete rather than left as a template heading.
Structured elaboration
- Scope: explicitly state what is in scope (the new gateway's checkout, refund, and webhook-notification flows) and what is out (no changes to the existing gateway used for a different region, which continues unaffected).
- Objectives: confirm the new gateway processes payments correctly, handles failures gracefully, meets security requirements, performs acceptably under load, and is acceptable to business stakeholders before go-live.
- Test types: functional (does a valid payment succeed, does an invalid card get correctly declined), integration (does the webhook notification correctly update order status), security (are card details never logged, is the API key stored and transmitted securely), performance (does checkout latency stay acceptable under expected peak load), and UAT, meaning user acceptance testing (does finance/ops sign off that the new gateway's dashboard and reconciliation reports meet their needs).
- Environment requirements: a sandbox environment for the new gateway with realistic test card numbers covering success, decline, and error scenarios, isolated from the production payment flow.
- Test data: a set of test cards representing valid transactions, declined transactions, expired cards, and gateway-specific edge cases (3D Secure challenge flows, currency-specific behavior).
- Schedule: sequence testing in phases (functional first, then integration, then performance and security, then UAT) tied to actual sprint dates, not just phase names.
- Roles: QA owns functional and integration testing, a security reviewer owns the security pass, a dedicated performance testing slot if load testing is required, and finance or ops stakeholders own UAT sign-off.
- Risk mitigation: a rollback plan if the new gateway misbehaves post-launch (feature flag to fall back to the existing gateway), and a phased rollout (a small percentage of traffic first) rather than switching all traffic at once.
- Entry/exit criteria: testing begins once the sandbox is fully configured and test cards are available; release requires all functional and security test cases passing, zero critical open defects, and explicit UAT sign-off from finance.
Worked example
Concretely, the schedule might read: week 1, sandbox setup and functional test-case execution; week 2, integration testing of webhook-driven order-status updates and a security review of credential handling; week 3, a load test simulating expected peak checkout volume plus UAT with the finance team reviewing reconciliation reports; go-live gated on all of the above passing, with a feature-flag-controlled rollout starting at 5% of traffic and ramping over the following week while monitoring the new gateway's error rate and latency against the existing gateway's baseline.
Trade-offs and pitfalls
The most common failure in a plan like this is treating UAT and security review as a final rubber stamp scheduled too late to act on findings; both should run early enough that a real problem does not become a release blocker discovered days before launch. The other common failure is skipping the rollback plan on the assumption the integration will work correctly, which turns a normal integration bug into an outage instead of a contained, reversible incident.
You are QA lead for a high-stakes healthcare release that must meet regulatory compliance. With limited time and resources, create a prioritized test plan focused on edge cases that could cause patient harm. Explain regulatory considerations, required test artifacts for audit (traceability matrices, test results), the coverage targets you would set, how to balance exploratory testing with automated regression, and how to capture evidence for auditors.
Sample Answer
Direct answer
For a high-stakes, regulated healthcare release under limited time, the test plan should concentrate almost entirely on edge cases with a plausible path to patient harm, backed by an audit trail thorough enough to satisfy a regulator, deliberately accepting thinner coverage elsewhere as an explicit, documented trade-off rather than trying to spread limited time evenly.
Structured elaboration
Regulatory considerations: healthcare software is typically subject to requirements around demonstrating that safety-relevant functionality was verified and that the verification itself is documented and reproducible, meaning the testing effort here is not complete until its evidence trail is also complete, not just when the functionality technically works.
Required test artifacts for audit: a traceability matrix mapping each identified patient-harm risk to the specific test case(s) that verify it is mitigated, and to the specific test results confirming it passed; retained, timestamped test execution results (not just a final pass/fail summary, but the actual evidence of what was tested and when); and a documented rationale for any coverage gap, since auditors expect either evidence of testing or an explicit, reasoned justification for its absence, not silence.
Coverage targets: 100% of identified patient-harm-risk scenarios must have a passing, documented test result before release; lower-risk areas can have a lower, explicitly stated target (for example, core functional coverage without exhaustive edge-case testing), with the distinction between the two tiers documented as a deliberate decision.
Balancing exploratory testing with automated regression: automated regression covers the known, previously-identified patient-harm scenarios reliably and repeatably, which is what the audit trail most directly relies on; a time-boxed exploratory session, run by someone with strong clinical or domain context, is reserved specifically for surfacing NEW, previously-unidentified risk scenarios the automated suite does not yet cover, since the traceability matrix can only be as good as the risk list it was built from.
Capturing evidence for auditors: every test execution relevant to a patient-harm risk should produce a retained artifact (a logged result tied to the specific code version tested, the specific requirement it verifies, and a timestamp), stored in a way that cannot be silently altered after the fact, since the evidence itself, not just the underlying correctness, is what an audit actually reviews.
Worked example
For a medication-dosage-calculation feature: the traceability matrix lists specific patient-harm risks (a dosage calculation error for a patient with a specific weight-based adjustment, a unit-conversion error between metric and imperial dosing, a failure to flag a known drug interaction) each mapped to a specific automated regression test and its most recent passing result, timestamped and tied to the release candidate's exact code version. Given the 4-week constraint, these three scenarios receive full automated regression coverage plus a dedicated exploratory session from a clinically-informed tester probing for scenarios not yet on the list (which surfaces a fourth risk: an edge case in rounding behavior for very small pediatric doses, which gets added to the matrix and tested before release). Lower-risk areas, like a cosmetic report-formatting feature elsewhere in the release, receive only basic functional coverage, explicitly documented as a lower-tier, lower-risk area rather than silently under-tested.
Trade-offs and pitfalls
The most dangerous mistake in a regulated, high-stakes context is treating "the feature works correctly" as sufficient without also building the audit evidence trail, since an auditor reviewing the release afterward needs to see documented proof, not just take the team's word that testing happened. The second mistake is letting exploratory testing substitute for the traceability matrix's rigor on the KNOWN risks; exploratory testing is for finding what is not yet known, while the already-identified patient-harm risks need the reproducible, documented certainty only structured, repeatable testing (usually automated) reliably provides.
Your sprint contains 40 code changes but only 6 hours available for regression testing before release. Design a pragmatic regression selection strategy: which tests to run (smoke, high-risk regression, quick automated checks), how to leverage automation, and how to assess and communicate residual production risk.
Sample Answer
Direct answer
With 40 code changes and only 6 hours for regression testing, the strategy is to run a fast smoke test covering the whole system first, follow it with targeted high-risk regression tests scoped specifically to the areas the 40 changes actually touch, use quick automated checks to cover the rest of the surface area cheaply, and then explicitly communicate the residual risk left uncovered rather than implying full confidence.
Structured elaboration
Sequence the 6 hours by expected value per hour spent:
- Smoke test (roughly 30 minutes to an hour): confirms nothing is catastrophically broken across the whole system, a fast go/no-go signal before investing further time.
- High-risk regression, scoped to the actual diff (the bulk of the remaining time, roughly 3-4 hours): map each of the 40 changes to the functional areas it touches, and prioritize regression testing on the highest-impact, highest-likelihood intersections (a change to the payment module gets deep manual regression; a change to an internal admin tool gets a lighter pass).
- Quick automated checks (run in parallel with the above, effectively free time-wise since they run unattended): the existing automated suite covering broad functional correctness runs in the background while manual effort focuses on the highest-risk targeted areas.
- Residual risk communication (the last 30 minutes): explicitly list what was NOT covered given the time constraint (low-risk areas touched by the 40 changes that received no dedicated testing) and communicate that list to stakeholders, rather than letting silence imply full confidence.
Worked example
Suppose of the 40 changes, mapping them to functional areas shows: 6 changes touch payment processing, 4 touch user authentication, 10 touch an internal reporting dashboard, and 20 touch minor UI copy and styling across various screens. Allocation: the smoke test covers the full system in the first hour. The remaining manual time goes almost entirely to the 6 payment and 4 authentication changes (roughly 3 hours, deep regression on these 10 changes specifically, since they are the highest business and security risk). The 10 reporting-dashboard changes get a lighter, faster manual spot-check (roughly 45 minutes), since a dashboard bug is visible and recoverable but not urgent. The 20 UI copy and styling changes rely entirely on the automated visual and functional regression suite running in parallel, with no dedicated manual time, and this gap is explicitly flagged: "the 20 copy and styling changes are covered only by automated checks, not manual review, given the time budget."
Communicating residual risk concretely: "we have high confidence in the payment and authentication changes based on targeted manual regression; the reporting dashboard changes received a light manual pass plus automated coverage; the UI copy changes rely entirely on automated checks, so a subtle visual issue there could reach production undetected until the next full regression pass."
Trade-offs and pitfalls
The most damaging mistake under this kind of time pressure is spreading the 6 hours evenly across all 40 changes instead of weighting by risk, which produces shallow coverage everywhere and misses the changes that actually matter most. The second mistake is skipping the residual-risk communication step, which quietly turns a deliberate, informed trade-off into an unstated gamble that nobody outside the testing team agreed to.
You need to decide whether to automate tests that verify multi-step financial transactions for a regulated product. Discuss regulatory, auditability, and traceability factors that affect the automation decision, and describe the additional controls you'd include in automated tests to meet compliance requirements.
Sample Answer
Direct answer
For multi-step financial transactions in a regulated product, the automation decision should account for regulatory and auditability requirements as first-class factors, not just the usual frequency and ROI calculus, since a regulator generally does not care whether a check was automated or manual, only that it happened, was recorded, and can be reproduced on demand.
Structured elaboration
Regulatory factors affecting the decision:
- Traceability: can you demonstrate, for any given transaction, exactly which checks ran and what their results were? Automated tests naturally produce this if logged properly; manual testing requires disciplined, consistent record-keeping to match that standard, which is often the harder path to sustain over time.
- Reproducibility: a regulator or auditor may ask you to reproduce a specific test scenario months later. Automated tests reproduce exactly; manual testing depends on the same tester remembering or re-deriving the exact steps, which is a real risk for audit purposes.
- Change control: regulated environments often require evidence that a change to test logic itself went through review. Automated test code naturally fits into the same version-control and review process as production code; manual test procedures need an equivalent, explicitly maintained change-control process to meet the same bar.
- Segregation of duties: some regulatory frameworks require that the person implementing a change not be the sole person verifying it. This affects who can author and approve automated tests just as much as who can perform manual sign-off, and needs to be reflected in your CI/CD approval and review process.
Additional controls to include in automated tests for compliance: an immutable, timestamped log of every test run and its result, tied to the specific code version tested; explicit coverage mapping from each automated test back to the specific regulatory requirement or control it verifies, so an auditor can trace requirement to test to result directly; and a documented, versioned change history for the test logic itself, so a modification to a compliance-relevant test is itself auditable.
Worked example
For a multi-step funds-transfer flow (initiate, verify identity, apply compliance holds, execute, confirm) in a regulated financial product: automate the core steps (does the transfer apply the correct compliance hold for a flagged account, does the confirmation step correctly record the final state) with each automated test explicitly tagged to the specific regulatory control it verifies (for example, a tag mapping to a specific anti-money-laundering hold requirement). Each test run's pass/fail result, the code version tested, and the timestamp are logged to an immutable audit log, separate from the routine CI log that might get rotated or truncated. A change to any of these compliance-tagged tests requires a second reviewer's sign-off in the pull request, mirroring the segregation-of-duties requirement that would apply to a manual sign-off process.
Trade-offs and pitfalls
The most common gap is automating the functional logic correctly but failing to build the audit trail (the traceability mapping, the immutable log, the change-control record) that the regulator actually cares about, leaving a technically well-tested feature that cannot pass an audit because the EVIDENCE of testing is missing or insufficient. The second pitfall is assuming automation alone satisfies segregation-of-duties requirements without explicitly enforcing a second-reviewer requirement on changes to the test logic itself, since an automated test authored and silently modified by one person does not meet that control any better than an unreviewed manual process would.
Unlock Full Question Bank
Get access to all Test Strategy, Planning, and Risk-Based Prioritization interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.