nerdexam
Microsoft

AZ-400 · Question #372

You are automating the build process for a Java-based application by using Azure DevOps. You need to add code coverage testing and publish the outcomes to the pipeline. What should you use?

The correct answer is A. Cobertura. Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in Cobertura or JaCoCo format. There are several versions of this question in the exam. The question has two possible correct Othe

Submitted by minji_kr· Mar 6, 2026Design and implement build and release pipelines

Question

You are automating the build process for a Java-based application by using Azure DevOps. You need to add code coverage testing and publish the outcomes to the pipeline. What should you use?

Options

  • ACobertura
  • BJUnit
  • CCoverage.py
  • DBullseye Coverage

How the community answered

(25 responses)
  • A
    88% (22)
  • C
    4% (1)
  • D
    8% (2)

Explanation

Use Publish Code Coverage Results task in a build pipeline to publish code coverage results to Azure Pipelines or TFS, which were produced by a build in Cobertura or JaCoCo format. There are several versions of this question in the exam. The question has two possible correct Other incorrect answer options you may see on the exam include the following: https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice