Reduce Build Pipeline Time: Actions to Optimize Azure Pipelines | AZ-400 Exam

Optimize Azure Pipelines for Faster Build Execution

Question

You have a build pipeline in Azure Pipelines that uses different jobs to compile an application for 10 different architectures.

The build pipeline takes approximately one day to complete.

You need to reduce the time it takes to execute the build pipeline.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Answer: The Azure Pipelines pool provides all Azure DevOps organizations with cloud-hosted build agents and free build minutes each month. If you need more

Question: I need more hosted build resources. What can I do?

Microsoft-hosted build resources, or need to run more jobs in parallel, then you can either:

-> Host your own agents on infrastructure that you manage.

-> Buy additional parallel jobs.

https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/pools-queues

To reduce the time it takes to execute the build pipeline in Azure Pipelines, we can take the following actions:

C. Increase the number of parallel jobs: One way to speed up the build pipeline is to increase the number of parallel jobs that run simultaneously. Azure Pipelines allows us to configure the number of parallel jobs for a pipeline. By increasing the number of parallel jobs, we can reduce the time it takes to compile the application for all 10 architectures.

E. Create an agent pool: An agent pool is a group of agents that can run jobs in a pipeline. By creating an agent pool and adding more agents to it, we can increase the capacity of our build pipeline. This means that we can run more parallel jobs simultaneously, which will reduce the time it takes to compile the application.

A. Move to a blue/green deployment pattern: Moving to a blue/green deployment pattern can help us reduce the downtime associated with deploying a new version of our application. However, this is not directly related to reducing the time it takes to execute the build pipeline.

B. Create a deployment group: A deployment group is a set of target machines where we can deploy our application. This is not directly related to reducing the time it takes to execute the build pipeline.

D. Reduce the size of the repository: Reducing the size of the repository may help with cloning the repository and pulling changes from it, but it is not directly related to reducing the time it takes to execute the build pipeline.

In summary, to reduce the time it takes to execute the build pipeline in Azure Pipelines, we can increase the number of parallel jobs and create an agent pool.