Be able to configure Azure Repos branch policies, apply path filters for monorepo build validation, and pick the correct Git merge strategy per pull request. The single most important thing: know how branch policies and path filters combine to control when builds and reviews are required before merge.
Start practicing
Design and implement source control — choose a session length
Free · No account required
Domain overview
This domain covers Git and Azure Repos source control in Azure DevOps: branching, pull request policies, merge strategies, path filters, and monorepo build validation. Questions test configuring branch policies, choosing merge types, scoping builds to folders, and ordering troubleshooting steps for failed release pipelines.
Exam objectives
Configuring Azure Repos branch policies: required reviewers, build validation, and status checks before merge
Using path filters in build validation policies to trigger builds only for specific monorepo folders
Selecting Git merge strategies in Azure Repos pull requests: merge commit, squash, rebase and fast-forward
Troubleshooting failed Azure DevOps release pipelines by inspecting logs, stages, and deployment gates
Assuming build validation always triggers on every commit; without path filters it runs regardless of which folders changed
Confusing squash merge with rebase: squash creates one new commit, rebase replays commits and rewrites history
Believing required reviewers block merges automatically; policy enforcement depends on branch policy scope and bypass permissions
Click any question to see the full explanation and answer options, or start a focused practice session above.
A development team uses a forking workflow in Azure Repos. They want to ensure that only specific users can create forks of the main repository. How can they achieve this?
2A team uses Git for source control. They want to automatically squash all commits in a feature branch into a single commit when merging to the main branch. Which merge type should they use?
3A company has a policy that all code changes must be reviewed by at least two people. However, for urgent bug fixes, they want to allow a single reviewer. How should they configure the branch policy?
4A developer accidentally committed a sensitive password to a Git repository. The commit has already been pushed to the remote. What is the first step to remediate the situation?
5A team is migrating from TFVC to Git. They have a large codebase with many branches. What is the recommended approach to preserve the history during migration?
6Which TWO branch policies can be configured in Azure Repos to enforce code quality?
7Which THREE are benefits of using a monorepo vs multiple repositories?
8Which THREE are valid Git merge strategies available in Azure Repos pull requests?
9You are a DevOps engineer at a company that develops a cloud-based SaaS application. The application consists of multiple microservices, each stored in its own Git repository within a single Azure DevOps project. The team has grown rapidly, and developers frequently need to make changes that span multiple services. They often complain about the overhead of managing multiple pull requests and coordinating merges across repositories. To improve efficiency, the team lead suggests consolidating all microservices into a single monorepo. However, the lead architect is concerned about the impact on build times, as the CI pipeline currently builds each service independently. You are tasked with designing a source control strategy that reduces cross-repository coordination overhead while maintaining fast, independent builds. You propose using a monorepo with a structure that allows selective building. Which approach should you recommend?
10You are a DevOps consultant for a financial services company that is migrating from TFVC to Git. The existing TFVC repository has several branches: main, dev, feature branches, and release branches. The history is linear with no branching. The company requires that all future Git commits follow a strict naming convention: 'type(scope): description' (e.g., 'feat(api): add new endpoint'). They also want to prevent direct commits to the main branch; all changes must go through pull requests with at least one reviewer. Additionally, they want to ensure that each commit message is validated before it is merged. The team is small (5 developers) and they want a simple setup without complex tooling. Which approach should you recommend?
11A development team uses Git for source control. They want to ensure that all code changes are reviewed before merging into the main branch. Which branch policy should they configure in Azure Repos?
12A team is migrating from TFVC to Git in Azure Repos. They have a large repository with a history of 10,000+ commits. They want to preserve the full history while minimizing migration time. Which approach should they recommend?
13An organization uses Azure Repos with multiple Git repositories. They want to enforce that all commits to the main branch are signed using GPG keys. Which combination of actions is required to enforce commit signing?
14A team uses a monorepo in Azure Repos. They want to implement a build validation policy that only triggers builds for code changes in specific folders to reduce build times. Which approach should they use?
15Which TWO actions should you take to ensure that your Git repository in Azure Repos remains performant as it grows?
16A development team uses Git for source control. They want to enforce a branching strategy where all feature work is done in short-lived branches that are merged to main via pull requests. The team also requires that every commit on main builds successfully. Which TWO practices should the team implement?
17Your team manages a large monorepo in Azure Repos containing multiple projects. Developers frequently complain that cloning the entire repository takes too long and that they only need a subset of the code. The team uses Git LFS for large binary files. The repository currently has 50,000 commits and is 5 GB in size. You want to improve clone performance without sacrificing the ability to contribute to any part of the repo. What should you do?
18A development team is using Git for source control. They have a main branch that should always be deployable. Developers work on feature branches and create pull requests to merge into main. Recently, a feature branch with incomplete work was accidentally merged into main, causing build failures. What is the best Git branch strategy to prevent this in the future while maintaining fast feedback?
19Drag and drop the steps to set up a continuous integration pipeline in Azure Pipelines into the correct order.
20Drag and drop the steps to troubleshoot a failed Azure DevOps release pipeline into the correct order.
21Match each Git branching strategy to its description.
22Match each Azure Artifacts feed type to its description.
23Refer to the exhibit. A team wants to release version 1.0 from the main branch. They notice that the tag v1.0 is already on the current main commit. However, they also see that the origin/feature/experiment branch has commits that are not merged into main. What is the most likely scenario?
24Refer to the exhibit. After executing the delete command, what is the state of the repository?
25Refer to the exhibit. A developer runs the pipeline on a branch called 'feature/abc'. What will happen?
26Refer to the exhibit. A developer pushes a new commit to an existing pull request targeting the main branch. What is the effect on the pull request?
27Refer to the exhibit. A developer is on the 'feature/login' branch and wants to integrate the latest changes from 'feature/user-profile' without creating a merge commit. Which Git command should the developer use?
28Refer to the exhibit. A pipeline in repository 'MyProject/AppRepo' is configured to trigger when changes are pushed to 'SharedRepo'. A developer pushes a commit to the 'release/v1' branch of 'SharedRepo'. What will happen?
29You are an Azure DevOps engineer at a software company that uses a single Azure Repos Git repository for a product with two independent release trains: a web front end and a backend API. You need to enforce that pull requests targeting the release branch for each train require approval from a different set of reviewers, and you must be able to report on policy compliance separately for each train. What should you configure?
30A development team uses Azure Repos Git. They need to ensure that every commit pushed to the main branch includes a valid work item link, but they do not want to block developers from pushing to feature branches. What should they configure?
31A 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?
Deep-dive questions
The most-searched questions in this domain — detailed explanations, worked examples, full answer breakdowns.
Be able to configure Azure Repos branch policies, apply path filters for monorepo build validation, and pick the correct Git merge strategy per pull request. The single most important thing: know how branch policies and path filters combine to control when builds and reviews are required before merge.
The Courseiva AZ-400 question bank contains 31 questions in the Design and implement source control domain, covering the 7% of the exam attributed to this domain in the official Microsoft blueprint. Click any question to see the full explanation and answer breakdown.
Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.
Yes — the session launcher on this page draws questions exclusively from the Design and implement source control domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included