InterviewStack.io LogoInterviewStack.io

Flaky Test Management and Test Reliability Questions

Detecting, isolating, and eliminating non-deterministic tests. Covers root-causing flakiness, quarantine and remediation systems, distinguishing product bugs from test bugs, and maintaining suite health over time. Emphasizes keeping automated suites trustworthy so failures mean something.

HardTechnical
70 practiced

Design a selective-retry system for CI that retries tests only under narrow, defensible conditions (e.g., network timeouts, 502/503 responses, intermittent infrastructure errors) and avoids masking application bugs. Specify detection heuristics for eligible failures, retry policy parameters (max attempts, backoff), metrics to collect (retry-rate, pass-after-retry, retries-per-test), and explain how retry outcomes should be surfaced in reports and bug-tracking systems.

MediumTechnical
59 practiced

A flaky test lives in your smoke suite and fails intermittently, causing release gates to block. Historically it passes 97% of runs. As the SDET, decide whether to: (A) add retries, (B) quarantine it, (C) remove it from the gate, or (D) file a fix. Provide a decision framework that includes metrics, stakeholders to consult, acceptable risk, and immediate mitigations if you cannot fix it quickly.

EasyTechnical
78 practiced

In Python's pytest, show a concise example (code snippet) of how you would mark a test as flaky with metadata (for example: @pytest.mark.flaky(issue='PROJ-123', owner='team-a')). Then explain how a CI pipeline could read that metadata to change execution behavior (e.g., allow reruns, skip in gating builds, annotate reports).

HardTechnical
70 practiced

Evaluate three third-party tools or services (e.g., FlakyTestDetector, test analytics platforms, service virtualization) for integrating with your CI to surface flaky tests. For each, describe the criteria you'd use to evaluate them (integration effort, accuracy, cost, privacy), and outline an integration plan for the chosen tool with rollback if it underperforms.

MediumTechnical
73 practiced

A flaky integration test is failing due to a database race condition. Describe the evidence you would collect (query logs, deadlock traces, lock wait statistics), how to reproduce the race locally, and the SQL/database techniques (transaction isolation levels, SELECT ... FOR UPDATE, optimistic locking) or application-side mitigations you would consider to fix the root cause.

Unlock Full Question Bank

Get access to all Flaky Test Management and Test Reliability interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.