You have an existing build pipeline in Azure Pipelines. You need to use incremental builds without purging the environment between pipeline executions. What sho...


Microsoft AZ-400 Exam

Questions Number: 316 out of 535 Questions
59.07%

Question 316
You have an existing build pipeline in Azure Pipelines.
You need to use incremental builds without purging the environment between pipeline executions.
What should you use?



When you run a pipeline on a self-hosted agent, by default, none of the subdirectories are cleaned in between two consecutive runs. As a result, you can do incremental builds and deployments, provided that tasks are implemented to make use of that. You can override this behavior using the workspace setting on the job.
Incorrect Answers:
B: The workspace clean options are applicable only for self-hosted agents. When using Microsoft-hosted agents job are always run on a new agent.
Reference:
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases





Previous Questions Next Questions