Courseiva
Design and implement build and release pipelineshardMultiple SelectObjective-mapped

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

Which THREE options are valid strategies to reduce build times in Azure Pipelines? (Choose three.)

⚠ Common exam trap

Many candidates confuse parallelism (multiple jobs) with build acceleration for a single pipeline, or assume sequential stages reduce time when they actually add overhead.

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

Enable incremental builds by using the 'Clean: false' option.

Setting 'Clean: false' enables incremental builds by retaining the workspace from the previous run. This means only changed files are rebuilt, significantly reducing build time by avoiding a full clean checkout and rebuild of unchanged code.

Answer analysis

Option-by-option breakdown

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

  • Enable incremental builds by using the 'Clean: false' option.

    Why this is correct

    Setting 'Clean: false' preserves outputs from the previous build so the incremental compiler can skip unchanged projects and only recompile modified code, dramatically shortening build time for large solutions by avoiding full rebuilds.

  • Use a self-hosted agent with a local cache of dependencies.

    Why this is correct

    A self-hosted agent maintains a persistent local repository of dependencies (e.g., npm cache, Maven .m2) and build outputs, so subsequent runs skip network downloads and package restores that would otherwise add significant time to each build.

  • Break the pipeline into multiple stages running sequentially.

    Why it's wrong here

    Sequential stages force each stage to wait for the previous one to complete, adding scheduling and artifact-handling overhead without parallelizing any work; this actually increases total build duration rather than reducing it.

  • Increase the number of parallel jobs in the pipeline.

    Why it's wrong here

    Increasing parallel jobs primarily scales the number of pipelines that can run concurrently across agents; it does not shorten the execution time of an individual pipeline unless that pipeline is already structured with independent parallel jobs that can run in parallel.

  • Use the 'Cache' task to cache folders like node_modules or .m2.

    Why this is correct

    The Cache task (e.g., Cache@2) stores and restores folders such as 'node_modules' or '.m2' between pipeline runs, using a cache key derived from dependency files; restoring dependencies from cache avoids expensive network fetches and significantly reduces build time when dependencies are unchanged.

About these practice questions

Courseiva writes every AZ-400 question from scratch — 823 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.