A build pipeline intermittently fails because a test that measures an API endpoint’s response time is unstable. You need to prevent the pipeline from failing due to that test. Which two actions should you take?
Choose an answer
Tap an option to check your answer.
Correct answer: Clear Flaky tests included in test pass percentage., Manually mark the test as flaky..
Why this is the answer
To prevent the pipeline from failing due to an unstable test, you should first manually mark the test as flaky. This identifies the test as unreliable without immediately failing the build. Then, clear the "Flaky tests included in test pass percentage" option. This ensures that even if a flaky test fails, it won't negatively impact the overall test pass percentage, allowing the pipeline to succeed. Setting "Flaky test detection to Off" would prevent the system from identifying other flaky tests, which is not ideal for long-term stability. Enabling Test Impact Analysis (TIA) helps run only relevant tests but doesn't address the flakiness of a specific test. Enabling test slicing distributes tests across agents but doesn't resolve the underlying instability of the test itself.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed