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
72 practiced

case_study: After enabling high degrees of test parallelization across many runners, your CI costs tripled and flakiness rates increased. Describe a structured root-cause investigation plan that covers data collection (what logs/metrics to capture), hypotheses (resource contention, non-isolated tests, network limits), experiments to validate hypotheses, mitigations to reduce flakiness and cost, and a rollback plan to restore prior stability if needed.

MediumTechnical
68 practiced

Implement a thread-safe Python decorator named @retry_on_flaky that retries a flaky function up to N times with exponential backoff and jitter. Requirements: preserve exception stack traces, be usable on functions returning values, allow configuring max_retries, initial_delay, max_delay, and jitter_factor, and be safe for concurrent test execution. Provide the function signature and key implementation notes rather than full library code.

EasyBehavioral
127 practiced

Behavioral: Tell me about a time you were responsible for debugging and fixing a flaky automated test or a flaky test suite. Use the STAR format: situation, task, actions you took (technical and process), measurable outcome, and how you prevented regression. If you don't have a direct example, describe a hypothetical but realistic scenario and your plan.

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.

EasyTechnical
83 practiced

What is test flakiness in CI context? List common causes of flakiness you have seen (e.g., timing/race conditions, shared-state, external service instability, test order dependence, resource contention). Give three immediate actions you could implement to reduce the impact of flaky tests on pipeline reliability and developer productivity.

That is every published Flaky Test Management and Test Reliability question for DevOps Engineer so far. Browse the other topics in this category, or practice this one interactively.