AZ-400 · Question #271
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?
The correct answer is A. a self-hosted agent. 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
Question
Options
- Aa self-hosted agent
- BMicrosoft-hosted parallel jobs
- Ca File Transform task
How the community answered
(20 responses)- A80% (16)
- B15% (3)
- C5% (1)
Explanation
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. https://docs.microsoft.com/en-us/azure/devops/pipelines/process/phases
Topics
Community Discussion
No community discussion yet for this question.