AZ-400 · Question #380
You use Azure Pipelines to build and release application code, The pipelines include validation tests that must be completed successfully before deployment proceeds from the test stage to production.
The correct answer is B. Configure a parallel test runner.. Inconsistent test outcomes suggest flaws in test logic or environment. Configuring a parallel test runner helps validate test logic by exposing hidden dependencies or race conditions.
Question
Options
- ADecrease the test pass rate.
- BConfigure a parallel test runner.
- CEnable flaky test detection.
- DInstall the Analytics extension.
How the community answered
(37 responses)- A5% (2)
- B84% (31)
- C3% (1)
- D8% (3)
Why each option
Inconsistent test outcomes suggest flaws in test logic or environment. Configuring a parallel test runner helps validate test logic by exposing hidden dependencies or race conditions.
Decreasing the test pass rate only lowers the success threshold and does not address the underlying technical issues causing inconsistent test outcomes or validate the test logic.
Configuring a parallel test runner helps validate test logic by executing tests concurrently across multiple agents or processes, which can expose issues such as race conditions, shared state problems, or environmental dependencies that lead to inconsistent outcomes. This approach allows for a more rigorous assessment of the test logic under varying execution conditions, helping to pinpoint the root causes of flakiness.
Enabling flaky test detection identifies *which* tests are inconsistent, but it does not directly reconfigure the test execution environment or actively assist in debugging and validating the flawed test logic itself.
Installing the Analytics extension provides reporting and insights into pipeline metrics but does not directly help validate test logic or resolve inconsistent test outcomes.
Concept tested: Test execution configuration for consistency and logic validation
Source: https://learn.microsoft.com/en-us/azure/devops/pipelines/test/parallel-testing
Community Discussion
No community discussion yet for this question.