Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You need to recommend an integration strategy for the build process of a Java application. The solution must meet the following requirements:
-> The build must access an on-premises dependency management system.
-> The build outputs must be stored as Server artifacts in Azure DevOps.
-> The source code must be stored in a Git repository in Azure DevOps.
Solution: Configure the build pipeline to use a Microsoft-hosted agent pool running a Linux image. Include the Java Tool Installer task in the build pipeline.
Does this meet the goal?
Click on the arrows to vote for the correct answer
A. B.A
To run your jobs, you'll need at least one agent. A Linux agent can build and deploy different kinds of apps, including Java and Android apps.
If your pipelines are in Azure Pipelines and a Microsoft-hosted agent meets your needs, you can skip setting up a private Linux agent.
The Azure Pipelines agent pool offers several virtual machine images to choose from, each including a broad range of tools and software. We support Ubuntu,
Red Hat, and CentOS.
https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-linux?view=azure-devops https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yamlThe given solution recommends configuring the build pipeline to use a Microsoft-hosted agent pool running a Linux image and including the Java Tool Installer task in the build pipeline to meet the stated requirements.
This solution appears to be valid because the Java Tool Installer task enables the build pipeline to access the on-premises dependency management system, and the Microsoft-hosted agent pool running a Linux image can execute the build process. Additionally, the output of the build process is stored as Server artifacts in Azure DevOps, and the source code is stored in a Git repository in Azure DevOps, which satisfies the specified requirements.
Therefore, the recommended solution appears to meet the given requirements, and the answer is A. Yes.