AZ-400 · topic practice

Design and implement a source control strategy practice questions

Practise Microsoft Azure DevOps Engineer Expert AZ-400 Design and implement a source control strategy practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Design and implement a source control strategy

What the exam tests

What to know about Design and implement a source control strategy

Design and implement a source control strategy questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Design and implement a source control strategy exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Design and implement a source control strategy questions

20 questions · select your answer, then reveal the explanation

Your team uses a monorepo in Azure Repos with multiple feature branches. You notice that merge conflicts frequently occur because developers are working on the same files. You want to reduce conflicts and improve collaboration. Which branching strategy should you recommend?

Your company is migrating from TFVC to Git in Azure Repos. The repository contains a large number of binary files (e.g., .dll, .exe) that are frequently updated. You need to minimize repository size and clone time. What should you include in your migration plan?

You have a GitHub repository with a GitHub Actions workflow that builds a .NET application. The workflow should only run when changes are pushed to the main branch, but it currently runs on every push to any branch. How should you fix the workflow trigger?

You are reviewing a webhook payload from Azure Repos. The payload indicates that a new branch named 'feature-123' was created. Which event type triggered this webhook?

Exhibit

Refer to the exhibit.
```json
{
  "branch": "refs/heads/feature-123",
  "before": "0000000000000000000000000000000000000000",
  "after": "abc123def456abc123def456abc123def456abc1",
  "commits": [
    {
      "id": "abc123def456abc123def456abc123def456abc1",
      "message": "Add new feature"
    }
  ]
}
```

You see the above git log output. The team has a policy requiring linear history on the main branch. Which command should be used next time to integrate the feature branch?

Network Topology
$ git logonelinegraphallRefer to the exhibit.```bash|/* 9a8b7c6 Initial commit```

Your team uses GitHub and wants to enforce that all commits to the main branch are signed with a GPG key. Which branch protection rule should you configure?

Your Azure DevOps project contains a Git repository with multiple branches. You need to ensure that code reviews are mandatory for all pull requests targeting the 'release' branch. Additionally, the build pipeline must pass before merging. How should you configure branch policies?

Your organization has multiple GitHub repositories that use shared workflows. You want to centrally manage these workflows and ensure they are always up to date. What is the recommended approach?

You are setting up a new GitHub repository for a project that requires strict access control. Only specific team members should be able to push to the main branch, but all team members should be able to create branches and open pull requests. What is the best way to achieve this?

Which TWO actions help reduce the size of a Git repository over time?

Which THREE are best practices for managing secrets in GitHub Actions workflows?

Which TWO are valid reasons to use a monorepo?

You receive a webhook notification from Azure Pipelines with the above payload. The build for the 'feature/logging' branch failed. You want to automatically create a work item to track the fix. What should you configure in Azure DevOps?

Exhibit

Refer to the exhibit.
```json
{
  "status": "completed",
  "result": "failed",
  "ref": "refs/heads/feature/logging",
  "repository": {
    "name": "myapp",
    "url": "https://dev.azure.com/myorg/myapp/_apis/git/repositories/myapp"
  },
  "pipeline": {
    "name": "CI Pipeline",
    "id": 123
  }
}
```

You have the above branch policy configuration for the main branch. A developer pushes a new commit to an existing pull request. What happens?

Network Topology
org https://dev.azure.com/myorgproject myprojectrepository myrepobranch mainoutput jsonRefer to the exhibit.```bash"type": "MinimumNumberOfReviewers","settings": {"minimumApproverCount": 2,"creatorVoteCounts": false,"resetOnSourcePush": true},"type": "Build","buildDefinitionId": 1,"queueOnSourceUpdateOnly": true```

Your team uses GitHub and wants to automate the creation of a new release branch (e.g., release/v1.2.3) whenever a tag starting with 'v' is pushed. Which GitHub Actions trigger should you use?

Your team uses Git for source control. A developer accidentally committed a large binary file (500 MB) to the main branch. The push succeeded but other team members are now complaining about slow fetch times. What is the most efficient way to remove the file from the repository history?

Question 17easymultiple choice
Open the full VLAN trunking answer →

Your organization is adopting a trunk-based development strategy with short-lived feature branches. Which branch policy should you enforce to ensure that code is integrated frequently and conflicts are minimized?

Your team uses GitHub and wants to enforce a policy that all commits to the main branch must be signed with a GPG key that is associated with the author's GitHub account. Which method should you use to enforce this?

Your organization uses Azure Repos and has multiple Git repositories that share common code. You want to enable code reuse across these repositories without duplicating code. Which strategy should you use?

Your team uses GitHub Flow and wants to ensure that every pull request is reviewed by at least one team member. Which branch protection rule should you enable?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Design and implement a source control strategy sessions

Start a Design and implement a source control strategy only practice session

Every question in these sessions is drawn from the Design and implement a source control strategy domain — nothing else.

Related practice questions

Related AZ-400 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the AZ-400 exam test about Design and implement a source control strategy?
Design and implement a source control strategy questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Design and implement a source control strategy questions in a focused session?
Yes — the session launcher on this page draws every question from the Design and implement a source control strategy domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other AZ-400 topics?
Use the topic links above to move to related areas, or go back to the AZ-400 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the AZ-400 exam covers. They are not copied from any real exam or dump site.