AZ-400 Design and implement source control Practice Question
A team is using Azure Repos Git and wants to integrate their repository with Azure Boards so that they can create branches directly from work items and track commits and pull requests against those work items. What should they do?
⚠ Common exam trap
The trap here is assuming that a marketplace extension or service connection must be installed to link Azure Repos with Azure Boards, when the integration is built in for repositories in the same organization and project.
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
✓
Ensure the repository and the Azure Boards project are in the same Azure DevOps organization and project, then use work item links in commits and pull requests.
Azure Repos and Azure Boards integrate automatically when they are in the same Azure DevOps organization and project. Developers can then use #ID references in commits and pull requests, create branches from work items, and view linked artifacts in Boards. No extension, service connection, or custom pipeline task is needed for this native integration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Install the Azure Boards extension from the Visual Studio Marketplace and configure a service connection to the repository.
Why it's wrong here
Azure Boards is a core service in Azure DevOps, not an extension that must be installed to integrate with Azure Repos. Service connections are used for external integrations such as build and deployment targets, not for linking a repository to Boards within the same organization. This approach adds unnecessary components and does not enable the built-in integration.
- ✗
Create a YAML pipeline that uses the PublishWorkItem task to associate commits with work items.
Why it's wrong here
There is no PublishWorkItem task in Azure Pipelines for associating commits with work items. Work item linking from commits is handled natively by the Azure Repos and Azure Boards integration when the #ID syntax is used. A pipeline task would not create the branch-from-work-item experience or the automatic commit tracking that the team requires.
- ✓
Ensure the repository and the Azure Boards project are in the same Azure DevOps organization and project, then use work item links in commits and pull requests.
Why this is correct
When a Git repository and an Azure Boards project are in the same Azure DevOps organization and project, the integration is active by default. Developers can reference work items with #ID syntax in commits and pull requests, and Azure Boards shows linked commits, branches, and pull requests without additional configuration. This satisfies the requirement out of the box.
- ✗
Enable the Boards integration from the repository settings by linking the repository to an Azure Boards project.
Why it's wrong here
Azure Repos and Azure Boards are integrated by default when they reside in the same Azure DevOps organization and project. There is no repository setting that toggles a link to a Boards project; the integration is automatic. Teams do not need to manually link repositories to projects to get work item linking, branch creation, or commit tracking.
Go deeper
Related to this question
Learn chapter
Implementing Work Item Management and Agile Planning
Key term
Git
Git is a version control system that tracks changes to files so multiple people can work on the same project without overwriting each other's work.
Key term
Azure Boards
Azure Boards is a work tracking and project management service from Microsoft that helps teams plan, track, and discuss work across the software development lifecycle using Kanban boards, backlogs, and dashboards.
About these practice questions
One of 696 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 →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Microsoft exam blueprint
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.