AZ-400 · Question #614
Hotspot Question You have three projects in Azure DevOps that are managed by using Azure Pipelines. Each project has the requirements shown in the following table. You need to recommend agents for the
The correct answer is Project1: Microsoft-hosted agent; Project2: Self-hosted agent; Project3: Scale set agent. This question tests knowledge of Azure DevOps agent types (Microsoft-hosted vs. self-hosted) and when to use each based on project requirements like internet connectivity, custom software, and cost considerations.
Question
Exhibits
Answer Area
- Project1Microsoft-hosted agentMicrosoft-hosted agentSelf-hosted agentScale set agent
- Project2Self-hosted agentMicrosoft-hosted agentSelf-hosted agentScale set agent
- Project3Scale set agentMicrosoft-hosted agentSelf-hosted agentScale set agent
Explanation
This question tests knowledge of Azure DevOps agent types (Microsoft-hosted vs. self-hosted) and when to use each based on project requirements like internet connectivity, custom software, and cost considerations.
Approach. Project 1 (requires internet access, no custom software, minimize cost): Use Microsoft-hosted agents - they are maintained by Microsoft, require no infrastructure management, and are ideal when no custom tooling is needed, minimizing administrative effort and cost. Project 2 (requires custom software/specific tools installed): Use self-hosted agents - when pipelines need specific software, frameworks, or configurations not available on Microsoft-hosted agents, a self-hosted agent allows full control over the environment while still minimizing ongoing admin effort once configured. Project 3 (requires access to on-premises resources/internal network): Use self-hosted agents - when builds or deployments need to reach resources inside a private network (e.g., on-premises servers, private databases), Microsoft-hosted agents cannot reach those resources, so a self-hosted agent deployed within or connected to that network is required.
Concept tested. Understanding the distinction between Microsoft-hosted agents (no maintenance, standard toolsets, internet-facing) and self-hosted agents (custom software, on-premises access, private network connectivity) in Azure Pipelines, and selecting the right agent type to minimize administrative overhead based on specific project constraints.
Reference. https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/agents?view=azure-devops
Topics
Community Discussion
No community discussion yet for this question.

