Drag steps to the numbered slots on the right, or tap a step then tap a slot.
AZ-400 Configure processes and communications Practice Question
Drag and drop the steps to set up a self-hosted Azure DevOps agent on a Windows VM into the correct order.
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
First create a PAT, then download the agent, then run config.cmd to configure and register, then start the agent as a service.
The correct order to set up a self-hosted Azure DevOps agent on a Windows VM is: create a Personal Access Token (PAT) first, then download the agent package, then run config.cmd to configure and register the agent with Azure DevOps, and finally start the agent as a service. Option A reflects this sequence correctly. Other options either place download before PAT creation or start the agent before configuration, which would fail.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
First create a PAT, then download the agent, then run config.cmd to configure and register, then start the agent as a service.
Why this is correct
This is the correct order because the PAT is required for authentication during configuration, and the agent must be configured before it can be started as a service.
- ✗
First download the agent, then create a PAT, then run config.cmd, then start the agent as a service.
Why it's wrong here
This is incorrect because you need the PAT before you can configure the agent; downloading the agent first is fine, but creating the PAT should come before configuration, not after.
- ✗
First create a PAT, then run config.cmd, then download the agent, then start the agent as a service.
Why it's wrong here
This is incorrect because you must download the agent before you can run config.cmd; you cannot configure something you haven't downloaded yet.
- ✗
First create a PAT, then download the agent, then start the agent as a service, then run config.cmd.
Why it's wrong here
This is incorrect because starting the agent as a service requires the agent to be configured first; configuration must happen before the service can start.
Visual reference
Go deeper
Related to this question
Learn chapter
Introduction to DevOps and Azure DevOps
Key term
Agent
An agent is a software component that runs on a local machine to perform automated tasks, collect data, or execute commands as part of a larger system like CI/CD or monitoring.
Key term
Azure DevOps
Azure DevOps is a Microsoft service that provides development tools for planning, building, testing, and deploying software applications using automated pipelines and collaboration features.
About these practice questions
One of 823 original AZ-400 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.