Your company is building a new solution in Java.
The company currently uses a SonarQube server to analyze the code of .NET solutions.
You need to analyze and monitor the code quality of the Java solution.
Which task types should you add to the build pipeline?
Click on the arrows to vote for the correct answer
A. B. C. D.C
SonarQube is a set of static analyzers that can be used to identify areas of improvement in your code. It allows you to analyze the technical debt in your project and keep track of it in the future. With Maven and Gradle build tasks, you can run SonarQube analysis with minimal setup in a new or existing Azure DevOps
Services build task.
Prepare Analysis Configuration task, to configure all the required settings before executing the build.
-> This task is mandatory.
-> In case of .NET solutions or Java projects, it helps to integrate seamlessly with MSBuild, Maven and Gradle tasks.
Note: There are several versions of this question in the exam. The question can have three correct answers:
-> MSBuild
-> Maven
-> Gradle
The question can also have different incorrect options, including:
-> Chef
-> xCODE
-> CocoaPods
https://docs3.sonarqube.org/latest/analysis/scan/sonarscanner-for-azure-devops/ https://docs.microsoft.com/en-us/azure/devops/java/sonarqube?view=azure-devopsTo analyze and monitor the code quality of a Java solution, you would need to add a code analysis tool to the build pipeline. There are several options for code analysis tools in the Java ecosystem, but one popular option is SonarQube, which is already being used by the company for .NET solutions.
Therefore, to analyze and monitor the code quality of the Java solution, you should add a SonarQube task to the build pipeline. This task would analyze the Java code using the SonarQube server and provide reports on code quality, code coverage, and other metrics.
Out of the given options, the correct choice would be C. Maven. Maven is a popular build tool for Java projects and has built-in support for SonarQube. By adding a Maven task to the build pipeline, you can configure it to run the SonarQube analysis and generate the reports.
Grunt and Gulp are task runners for JavaScript projects and are not relevant for analyzing Java code. Octopus is a deployment automation tool and is also not relevant for code analysis.
Therefore, the correct answer is C. Maven.