Your organization uses Azure Pipelines for CI/CD. You have a pipeline that takes 45 minutes to run and requires compiling large C++ binaries. You are currently using Microsoft-hosted agents, but the build times are unacceptable. You want to reduce build times by utilizing incremental builds and cached dependencies. Which type of agent pool should you configure?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: A self-hosted agent pool

Self-hosted agents allow you to persist the working directory and caches between pipeline runs, which enables incremental builds and significantly speeds up compilation for large p...

๐Ÿ“‹Part of Microsoft Certified: DevOps Engineer Expert (AZ-400) ยท Azure Certification Practice
Real Exam ScenarioAzure Pipelines

Your organization uses Azure Pipelines for CI/CD. You have a pipeline that takes 45 minutes to run and requires compiling large C++ binaries. You are currently using Microsoft-hosted agents, but the build times are unacceptable. You want to reduce build times by utilizing incremental builds and cached dependencies. Which type of agent pool should you configure?

โœ“ Correct Answer & ExplanationAzure Pipelines

Correct Answer

A self-hosted agent pool

Why This Answer Is Correct

Self-hosted agents allow you to persist the working directory and caches between pipeline runs, which enables incremental builds and significantly speeds up compilation for large projects. Microsoft-hosted agents provide a fresh, clean VM for every job, meaning you lose the incremental build cache. VMSS pools set to tear down act similarly to Microsoft-hosted agents.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of Azure Pipelines โ€” a core concept tested in Microsoft Certified: DevOps Engineer Expert (AZ-400). Understanding Azure Pipelines is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.