Chapter 2 of 10 · Microsoft AZ-400

Design and implement a source control strategy

Branching strategies, pull request policies, large files, repository scale, permissions, tags and recovering data.

  • 3topics
  • 15 minfast track
  • 1diagrams and exhibits

Topics in this chapter

Take them in order, or jump to the one you need.

  1. 1Branching Strategies and Pull Request PoliciesAZ-400 branching: trunk based, feature and release strategies, plus Azure Repos branch policies and GitHub branch protection…Diagram5 min
  2. 2Large Files, Repository Scale, Permissions and TagsAZ-400 repository management: Git LFS and git-fat for large files, Scalar for scale, repository permissions in Azure Repos and…5 min
  3. 3Recovering and Removing Data with GitAZ-400 Git recovery: reflog, reset, revert and restore, plus removing leaked secrets and large files from history with…5 min

About this chapter

What this chapter covers

Source control is the foundation every pipeline reads from. This domain is worth 10 to 15 percent of the exam. It covers choosing a branching strategy, protecting branches with policies, keeping repositories fast and clean with large file handling, permissions and tags, and the Git commands that recover or remove data.

The key skill is matching the strategy to how the team ships: trunk based for continuous delivery, release branches for versioned products, and strong branch protection everywhere.

How the topics fit together

Branch strategytrunk, feature, releasePull requestpolicies and rulesRepository careLFS, tags, permissionsRecoveryreflog, revert, rewrite
  • Branching strategies and pull request policies covers the three strategies, Azure Repos branch policies and GitHub branch protection.
  • Large files, repository scale, permissions and tags covers Git LFS, git-fat, Scalar, access and tagging.
  • Recovering and removing data with Git covers undoing mistakes and purging secrets from history.
Exam tip

Rewriting history (filter-repo, force push) is for removing data that should never have been committed. Reverting is for undoing a change in shared history.

How to use these pages

Each topic page has the same shape, so you can skim for what you need.

  • What it is: the idea in plain words.
  • How it works: the mechanism, with examples and tables.
  • What to remember for the exam: the facts to memorise and how questions are phrased.
  • Common mistakes: the classic traps.
  • Check yourself: three questions to test your understanding.

Ready for more practice?

The full Microsoft AZ-400 question bank has 766 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Microsoft. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.