Reducing App1 Unit and Integration Test Time with Test Impact Analysis
Short answer
C Test Impact Analysis selects only the tests affected by the change, cutting test time while still meeting the coverage ratio on the modified code.
Question
Key Takeaways
Test Impact Analysis performs incremental validation by automatically selecting only the subset of tests affected by the code change, so test duration falls while the same coverage ratio is still enforced on the changed code.
An Azure Pipelines pipeline builds, tests, and deploys App1, and the time spent on unit and integration tests must be reduced while still maintaining the code coverage testing ratio. The optimization has to shrink test duration without weakening the coverage requirement, which rules out simply adding capacity.
Common mistake: Adding an agent pool or buying parallel jobs, which makes the same set of tests run faster or in parallel but does not reduce how many tests run, so it adds infrastructure cost without addressing the underlying redundancy in test selection.
Expert Analysis
Why the Answer Is Correct
The requirement is to reduce the time spent on unit and integration tests while maintaining the code coverage ratio, so the reduction has to come from running fewer tests rather than from running the same tests faster. Test Impact Analysis does exactly this by analyzing which code changed and automatically selecting only the tests required to validate that change, performing incremental validation of just the affected subset. Because the reduced selection still covers the modified code, the coverage ratio requirement continues to be satisfied, which is what distinguishes this from simply loosening the tests. The vote was unanimous at 100 for C. danisancho gave the technical description, noting that TIA performs incremental validation by automatic test selection and that it automatically selects only the subset of tests required to validate the code being committed.
Why the Other Options Are Wrong
Adding an agent pool (D) increases the agents available to run tests, so the total wall clock time may fall, but the same number of tests still executes and the pipeline now consumes more agent capacity, which is a scaling answer rather than an efficiency answer to a duration problem. Purchasing additional parallel jobs (B) has the same weakness and adds cost, since parallel jobs change concurrency rather than the amount of testing work selected. Enabling flaky test management (A) addresses a different problem entirely, namely identifying and quarantining unreliable tests so they do not consume retries and mask real failures, which helps signal quality but does not reduce the number of tests run for a valid change.
Community Comment Notes
The community was unanimous at 100 for C, and both substance comments identify Test Impact Analysis by name, with danisancho explaining the incremental validation mechanism and marmila confirming the answer. The reasoning is not contested because the question embeds the constraint that makes the answer unique, namely maintaining the coverage ratio, which eliminates every option that merely adds compute. The general pattern is worth carrying forward: when a question asks to reduce test time while keeping a quality bar, the answer is almost always smarter test selection rather than more agents.
Official Reference
https://learn.microsoft.com/en-us/azure/devops/pipelines/test/test-impact-analysis?view=azure-devops
This link opens the official vendor documentation in a new tab.
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 3 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 3
-
danisancho 👍 1 Answered CC is the correct answer. TIA performs incremental validation by automatic test selection. It automatically selects only the subset of tests required to validate the code being committed.
-
marmila 👍 1 Answered CC. Enable Test Impact Analysis (TIA).
-
Gooldmember 👍 1 Answered CI agree with C.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All AZ-400 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AZ-400 Practice Test →