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.A
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.
Incorrect Answers:
B: CocoaPods is the dependency manager for Swift and Objective-C Cocoa projects.
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
-> Octopus
-> xCODE
https://docs3.sonarqube.org/latest/analysis/scan/sonarscanner-for-azure-devops/ https://docs.microsoft.com/en-us/azure/devops/java/sonarqube?view=azure-devopsOut of the given task types, Gradle is the correct option for analyzing and monitoring the code quality of the Java solution.
Gradle is a powerful build automation tool that supports multi-language builds, including Java. It provides a rich set of plugins that integrate with various development tools, including SonarQube.
By adding the Gradle task to the build pipeline, you can configure Gradle to run SonarQube analysis on the Java code, which will generate detailed reports on code quality and help identify any issues that need to be addressed. This will provide visibility into the quality of the Java solution and enable the team to track code quality over time.
CocoaPods is a dependency manager for iOS projects, and Grunt and Gulp are task runners for JavaScript-based projects. These tools are not suitable for analyzing and monitoring Java code quality and should not be added to the build pipeline for this purpose.