Flaky Tests interview questions — Easy
124 easy-level Flaky Tests questions from our Automation Testing bank, each with the correct answer and an explanation of why it is correct.
This topic slice is available to practise but is not yet part of our indexed set.
What this covers
Flaky Tests appears throughout Automation Testing interviews. At easy level, interviewers are typically checking that you know the fundamentals and can describe them precisely — definitions, defaults, and the basic mechanics. Work through these, then explain your answer out loud; the second part is what interviews actually test.
20 example questions
1. Which of the following best describes quarantine in Flaky Tests?
- A. Isolating unstable tests from the blocking pipeline.correct
- B. Test that produces the same result for the same code every run.
- C. Re-running failed tests a bounded number of times.
- D. Ensuring each test sets up and cleans its own state.
Why: quarantine: Isolating unstable tests from the blocking pipeline.
2. In the context of Flaky Tests, flake rate is best described as:
- A. Isolating unstable tests from the blocking pipeline.
- B. Polling until an application state is true instead of sleeping.
- C. Percentage of runs where a test's outcome flips without code change.correct
- D. Ensuring each test sets up and cleans its own state.
Why: flake rate: Percentage of runs where a test's outcome flips without code change.
3. Which of the following best describes order dependency in Flaky Tests?
- A. Fully isolated environment with no external shared dependencies.
- B. Ensuring each test sets up and cleans its own state.
- C. Re-running failed tests a bounded number of times.
- D. Failure mode where tests pass only in a specific sequence.correct
Why: order dependency: Failure mode where tests pass only in a specific sequence.
4. Which of the following best describes retry-on-failure in Flaky Tests?
- A. Re-running failed tests a bounded number of times.correct
- B. Ensuring each test sets up and cleans its own state.
- C. Polling until an application state is true instead of sleeping.
- D. Isolating unstable tests from the blocking pipeline.
Why: retry-on-failure: Re-running failed tests a bounded number of times.
5. Which of the following best describes deterministic test in Flaky Tests?
- A. Test that produces the same result for the same code every run.correct
- B. Fully isolated environment with no external shared dependencies.
- C. Percentage of runs where a test's outcome flips without code change.
- D. Ensuring each test sets up and cleans its own state.
Why: deterministic test: Test that produces the same result for the same code every run.
6. Which of the following best describes hermetic environment in Flaky Tests?
- A. Fully isolated environment with no external shared dependencies.correct
- B. Re-running failed tests a bounded number of times.
- C. Ensuring each test sets up and cleans its own state.
- D. Percentage of runs where a test's outcome flips without code change.
Why: hermetic environment: Fully isolated environment with no external shared dependencies.
7. Which of the following best describes test isolation in Flaky Tests?
- A. Isolating unstable tests from the blocking pipeline.
- B. Re-running failed tests a bounded number of times.
- C. Ensuring each test sets up and cleans its own state.correct
- D. Percentage of runs where a test's outcome flips without code change.
Why: test isolation: Ensuring each test sets up and cleans its own state.
8. Which of the following best describes flake rate in Flaky Tests?
- A. Percentage of runs where a test's outcome flips without code change.correct
- B. Polling until an application state is true instead of sleeping.
- C. Ensuring each test sets up and cleans its own state.
- D. Test that produces the same result for the same code every run.
Why: flake rate: Percentage of runs where a test's outcome flips without code change.
9. In Flaky Tests, what does hermetic environment do or refer to?
- A. Ensuring each test sets up and cleans its own state.
- B. Fully isolated environment with no external shared dependencies.correct
- C. Failure mode where tests pass only in a specific sequence.
- D. Polling until an application state is true instead of sleeping.
Why: hermetic environment: Fully isolated environment with no external shared dependencies.
10. Which of the following best describes wait-for condition in Flaky Tests?
- A. Polling until an application state is true instead of sleeping.correct
- B. Failure mode where tests pass only in a specific sequence.
- C. Percentage of runs where a test's outcome flips without code change.
- D. Test that produces the same result for the same code every run.
Why: wait-for condition: Polling until an application state is true instead of sleeping.
11. What is the purpose of hermetic environment in Flaky Tests?
- A. Ensuring each test sets up and cleans its own state.
- B. Percentage of runs where a test's outcome flips without code change.
- C. Fully isolated environment with no external shared dependencies.correct
- D. Failure mode where tests pass only in a specific sequence.
Why: hermetic environment: Fully isolated environment with no external shared dependencies.
12. In Flaky Tests, what does deterministic test do or refer to?
- A. Failure mode where tests pass only in a specific sequence.
- B. Isolating unstable tests from the blocking pipeline.
- C. Re-running failed tests a bounded number of times.
- D. Test that produces the same result for the same code every run.correct
Why: deterministic test: Test that produces the same result for the same code every run.
13. In Flaky Tests, what does quarantine do or refer to?
- A. Isolating unstable tests from the blocking pipeline.correct
- B. Polling until an application state is true instead of sleeping.
- C. Percentage of runs where a test's outcome flips without code change.
- D. Ensuring each test sets up and cleans its own state.
Why: quarantine: Isolating unstable tests from the blocking pipeline.
14. In Flaky Tests, what does retry-on-failure do or refer to?
- A. Ensuring each test sets up and cleans its own state.
- B. Re-running failed tests a bounded number of times.correct
- C. Percentage of runs where a test's outcome flips without code change.
- D. Test that produces the same result for the same code every run.
Why: retry-on-failure: Re-running failed tests a bounded number of times.
15. In Flaky Tests, what does wait-for condition do or refer to?
- A. Percentage of runs where a test's outcome flips without code change.
- B. Polling until an application state is true instead of sleeping.correct
- C. Ensuring each test sets up and cleans its own state.
- D. Test that produces the same result for the same code every run.
Why: wait-for condition: Polling until an application state is true instead of sleeping.
16. What is the purpose of flake rate in Flaky Tests?
- A. Failure mode where tests pass only in a specific sequence.
- B. Fully isolated environment with no external shared dependencies.
- C. Percentage of runs where a test's outcome flips without code change.correct
- D. Isolating unstable tests from the blocking pipeline.
Why: flake rate: Percentage of runs where a test's outcome flips without code change.
17. What is the purpose of wait-for condition in Flaky Tests?
- A. Fully isolated environment with no external shared dependencies.
- B. Isolating unstable tests from the blocking pipeline.
- C. Polling until an application state is true instead of sleeping.correct
- D. Failure mode where tests pass only in a specific sequence.
Why: wait-for condition: Polling until an application state is true instead of sleeping.
18. In Flaky Tests, what does order dependency do or refer to?
- A. Polling until an application state is true instead of sleeping.
- B. Ensuring each test sets up and cleans its own state.
- C. Fully isolated environment with no external shared dependencies.
- D. Failure mode where tests pass only in a specific sequence.correct
Why: order dependency: Failure mode where tests pass only in a specific sequence.
19. What is the purpose of deterministic test in Flaky Tests?
- A. Fully isolated environment with no external shared dependencies.
- B. Isolating unstable tests from the blocking pipeline.
- C. Re-running failed tests a bounded number of times.
- D. Test that produces the same result for the same code every run.correct
Why: deterministic test: Test that produces the same result for the same code every run.
20. In Flaky Tests, what does flake rate do or refer to?
- A. Fully isolated environment with no external shared dependencies.
- B. Percentage of runs where a test's outcome flips without code change.correct
- C. Failure mode where tests pass only in a specific sequence.
- D. Polling until an application state is true instead of sleeping.
Why: flake rate: Percentage of runs where a test's outcome flips without code change.