New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-400 Exam - Topic 2 Question 121 Discussion

Actual exam question for Microsoft's AZ-400 exam
Question #: 121
Topic #: 2
[All AZ-400 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

Use Publish Code CoverageResults 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.


https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-code-coverage-results

Contribute your Thoughts:

0/2000 characters
Kristine
2 months ago
I’m surprised Coverlet is the go-to for Java, thought it was just for .NET!
upvoted 0 times
...
Lavera
3 months ago
Definitely agree, Coverlet integrates well with Azure DevOps.
upvoted 0 times
...
Chantay
3 months ago
I think Coverlet is the best choice for .NET apps.
upvoted 0 times
...
William
3 months ago
Wait, isn't MSTest mainly for .NET?
upvoted 0 times
...
Adelaide
3 months ago
Cobertura is good too, but not as popular for Java.
upvoted 0 times
...
Maybelle
3 months ago
MSTest seems familiar, but I thought it was more for unit testing rather than code coverage. I might be mixing it up with another tool.
upvoted 0 times
...
Shawnta
4 months ago
I feel like Cobertura was one of the tools we practiced with, but I can't recall if it was specifically for Java or something else.
upvoted 0 times
...
Jackie
4 months ago
I think Coverlet was mentioned as a good option for .NET projects, but I'm not sure if it applies to Java-based applications too.
upvoted 0 times
...
Kristal
4 months ago
I remember we discussed code coverage tools in our last study group, but I'm not entirely sure which one integrates best with Azure DevOps.
upvoted 0 times
...
Wilbert
4 months ago
Ah, this is right in my wheelhouse! Cobertura is the classic Java code coverage tool, and it has great support for Azure DevOps pipelines. I'm confident that's the best option for this scenario.
upvoted 0 times
...
Shenika
5 months ago
I think Coverlet might be the way to go here. It's a cross-platform code coverage tool that should work well with Azure DevOps. I'll make a note to look into the setup process.
upvoted 0 times
...
Devorah
5 months ago
I'm a bit confused on the options here. Coverlet sounds familiar, but I'm not sure if that's the right tool for a Java app. Guess I'll need to do some quick research.
upvoted 0 times
...
Lauran
5 months ago
Okay, I've used Cobertura before for Java code coverage, so that's my best guess. But I'm not sure if it integrates well with Azure DevOps.
upvoted 0 times
...
Jaclyn
5 months ago
Hmm, this looks like a tricky one. I'll need to think through the Azure DevOps build process and what tools are available for code coverage testing.
upvoted 0 times
...
Rebbecca
7 months ago
Cobertura all the way! I mean, it's like asking a pilot to use a submarine - just doesn't make sense.
upvoted 0 times
Shawn
6 months ago
I agree, Cobertura is the way to go for code coverage testing.
upvoted 0 times
...
Sena
7 months ago
A) Cobertura
upvoted 0 times
...
...
Theodora
8 months ago
Bullseye Coverage? What is this, archery practice? I'm going with Cobertura. It's the only option that makes sense.
upvoted 0 times
Jennifer
7 months ago
I agree, Cobertura is commonly used for Java applications.
upvoted 0 times
...
Ariel
7 months ago
Cobertura is a good choice for code coverage testing.
upvoted 0 times
...
...
Jacklyn
8 months ago
Coverage.py? Really? I thought we were auJacklynating a Java build, not a Python one. This is clearly a trick question.
upvoted 0 times
...
Ricki
8 months ago
I'm not sure about Cobertura. Isn't that a Python tool? Shouldn't we be looking at something more Java-specific like JUnit?
upvoted 0 times
Dalene
7 months ago
B) JUnit
upvoted 0 times
...
Yoko
7 months ago
A) Cobertura
upvoted 0 times
...
Vernell
8 months ago
C) Coverage.py
upvoted 0 times
...
...
Salina
9 months ago
I prefer Cobertura because it provides detailed code coverage reports.
upvoted 0 times
...
Bette
9 months ago
I agree with Sheridan, JUnit is a popular choice for Java applications.
upvoted 0 times
...
Gilma
9 months ago
Hmm, Cobertura seems like the obvious choice here. Azure DevOps and Java? That's a no-brainer!
upvoted 0 times
Gilberto
8 months ago
It's definitely the go-to option for Java applications.
upvoted 0 times
...
Helene
8 months ago
I agree, it integrates well with Azure DevOps.
upvoted 0 times
...
Jordan
8 months ago
Cobertura is a great choice for code coverage testing.
upvoted 0 times
...
...
Sheridan
9 months ago
I think we should use JUnit for code coverage testing.
upvoted 0 times
...

Save Cancel