You have an Azure solution that contains a build pipeline in Azure Pipelines. You experience intermittent delays before the build pipeline starts. You need to reduce the time it takes to start the build pipeline. What should you do?
delays BEFORE the pipeline starts can be fixed with self-hosted agent, if the delays are DURING the pipeline executes, then we talk about more parallel jobs
answer - self-hosted agents is correct!
Self-Hosted vs MS-Hosted can vary in execution time.
MS-Hosted doesn't support caching.
MS-Hosted has limited agent specs.
MS-Hosted parallel jobs must be purchased.
MS-Hosted agents are paid per agent and runtime.
Self-Hosted supports caching
Self-Hosted agent specs based on hardware / infrastructure
Self-Hosted agents support parallel jobs at no extra cost.
Self-Hosted agents are paid per agent and runtime.
With MS-Hosted, you will have to purchase an additional parallel job and then pay for each additional agent.
With Self-Hosted, you only pay for the time that your agents are running. Unlimited parallel jobs included.
Cache build in YAML on self-hosted agents for quicker execution times.
Self-Hosted Agents because better hardware specs
Self-Hosted Agents because environment caching
Self-Hosted Agents because lower operating cost
Also, why spend more money on agent runtime to recompile the same dependencies each time? Precisely –Self-Hosted Agents.
"You experience intermittent delays before the build pipeline starts."
Before starts... So (A) "Enable self-hosted build agents" reduce the time it taks to start the build pipeline.
Purchase and additional parallel job could help to reduce the execution time of the build pipeline, not the delay to start, because the build pipeline has to wait for a free agent to start
Intermittent Delays: The word "intermittent" in the question implies irregular interval delays. While switching from MS-hosted to self-hosted would improve the startup time, it wouldn't completely eliminate the possibility of intermittent delays if you have multiple pipelines competing for resources.
Parallel Jobs: Parallel jobs allow you to run multiple builds concurrently, reducing the chances of any single pipeline experiencing significant delays due to waiting for others. This is the most effective way to address intermittent delays caused by resource contention.
you only have one pipeline (a build pipeline) + Intermittent delay , if you combine these 02 factors then this could only happen in MS hosted, so answer is A
Enable Self-Hosted Agents
An intermittent delay would be due to a busy agent. An additional parallel job would work if you have extra available agents.
You still need to enable self-hosted agents.
The question says it consists of A build pipeline not many pipeline. Therefore adittional parallel job is not needed. A self hosted agent is enough for a pipeline to start without delay.
Potential performance advantages that you might get by using self-hosted agents that might start and run builds faster.
From https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml
So answer is A
In this specific scenario where delays occur before the pipeline even starts, the issue lies in the availability of a free agent to handle the build job. Purchasing an additional parallel job increases the number of concurrent pipelines that can be executed on the same agent, potentially reducing the queueing time for your pipeline to find an available agent.
Correct A
If you are just setting up a pipeline and are comparing the performance of Microsoft-hosted agents to your local machine or a self-hosted agent, then note the specifications of the hardware that we use to run your jobs. We are unable to provide you with bigger or powerful machines. You can consider using self-hosted agents or scale set agents if this performance is not acceptable.
https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml
I'd choose A. While D would be a valid answer if the the delay would be caused by another job running, that aspect is not mentioned in the question at all.
This section is not available anymore. Please use the main Exam Page.AZ-400 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
alpars
Highly Voted 2 years, 10 months agohotspot02103
3 months, 2 weeks agoUrbanRellik
4 months, 1 week agoGooldmember
5 months agojose
Highly Voted 2 years, 4 months agogerardjongh
12 months agoJohn696
Most Recent 4 days, 3 hours agoDankho
3 months, 2 weeks agodddddddddddww12
4 months agoUrbanRellik
4 months, 1 week agoIBking
4 months, 1 week agoGooldmember
5 months agoMrAZ105
6 months agoMattt
6 months, 1 week agoDevopsRock
7 months, 1 week agosondrex
8 months, 3 weeks agoGPRai
9 months, 3 weeks agoFeriAZ
1 year agoozbonny
1 year, 1 month agoMunwalinwali
1 year, 2 months agohardinxcore
1 year, 3 months ago