Courseiva
Design and implement build and release pipelineseasyMultiple ChoiceObjective-mapped

AZ-400 Practice Question: Design and implement build and release pipelines

Your build pipeline fails intermittently with the error: 'The job running on agent 'Azure Pipelines' exceeded the maximum execution time of 60 minutes.' How can you resolve this issue?

⚠ Common exam trap

Many candidates confuse job timeout with pipeline performance, incorrectly assuming that optimizing speed (parallelism or faster agents) resolves a timeout error, when the actual fix is to adjust the timeout limit.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Increase the 'timeoutInMinutes' property in the pipeline YAML for the job.

The error indicates the job exceeded the default 60-minute timeout for Azure Pipelines hosted agents. Increasing the 'timeoutInMinutes' property in the pipeline YAML for the job explicitly extends the maximum execution time, directly resolving the timeout issue. This property can be set at the job level to allow longer-running tasks without changing the pipeline structure.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Increase the 'timeoutInMinutes' property in the pipeline YAML for the job.

    Why this is correct

    Increasing the timeoutInMinutes property in the pipeline YAML for the job extends the maximum allowed duration for the job, preventing Azure DevOps from cancelling it when it exceeds the default 60-minute limit. This directly addresses the intermittent timeout error by giving the job more time to complete. Note: for Microsoft-hosted agents, the max is 360 minutes, while self-hosted agents can use 0 for no limit.

  • Split the pipeline into multiple stages to reduce job duration.

    Why it's wrong here

    Splitting a pipeline into multiple stages does not reduce the duration of an individual job; each job still runs within its own timeout limit. Timeout applies per job, not per pipeline, so a long-running job in one stage will still fail if it exceeds its configured timeoutInMinutes. Thus, this approach does not resolve the intermittent timeout error.

  • Enable parallel jobs to run the pipeline faster.

    Why it's wrong here

    Enabling parallel jobs runs multiple jobs concurrently, but it does not change the timeout limit for any individual job. Each job must still finish within its specified timeoutInMinutes, so a job that takes too long will still be cancelled. This approach can reduce overall pipeline duration but not the risk of a single job timing out.

  • Use a self-hosted agent with more CPU cores.

    Why it's wrong here

    Using a self-hosted agent with more CPU cores can make the job run faster, but it does not alter the timeout configuration in the pipeline YAML. The job still has the same timeoutInMinutes limit, so if it exceeds that limit due to external factors or inefficiencies, it will still be cancelled. Performance improvements alone are not the reliable fix; adjusting the timeout is the correct solution.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

This AZ-400 question is part of Courseiva's 823-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.