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.

MediumSystem Design
59 practiced

Design an automated quarantine system that integrates with CI and your issue tracker. Requirements: detect tests above a flakiness threshold, tag them as 'quarantined' in the test registry, open an issue with diagnostic artifacts, notify owner(s), and automatically re-evaluate removal after a configurable period or on improvement. Describe system components, data flows, APIs, failure modes, and how to avoid noisy or oscillating quarantines.

HardTechnical
78 practiced

Propose an organizational governance model for automated quarantining or skipping of tests that balances automation with developer ownership. Include approval workflows, time limits on quarantines, escalation paths, metrics to track (e.g., quarantine-age, fix-rate), and incentives to ensure quarantined tests are fixed rather than forgotten.

HardTechnical
66 practiced

Your CI test suite is highly flaky and causing teams to ignore failures. Design a prioritized remediation plan that spans short-term mitigation (e.g., quarantining, retries) and long-term fixes (root-cause analysis, tooling, ownership, and culture). Include how you'd measure progress, stakeholders to involve, and a timeline for the first 90 days.

MediumTechnical
77 practiced

Your test suite contains flaky tests that sometimes fail because dependencies are slow or third-party APIs are rate-limited. Propose a strategy to make tests for error handling stable: consider mocking, test doubles, timeouts, and retries. Give concrete examples of how to rewrite a flaky integration test into a stable unit test plus targeted integration tests.

HardTechnical
80 practiced

Given an API for a distributed test scheduler that provides endpoints: POST /jobs, GET /jobs/{id}/status, and POST /jobs/{id}/retry, design and describe code (pseudo or Python) that will reschedule failed tests with exponential backoff up to 3 attempts and after failures above a threshold mark the test as quarantined. Make sure to handle idempotency and concurrent workers.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.