Microsoft AZ-400: Source Control and Repository Management — Study Guide

Part of the Microsoft DevOps Engineer Expert AZ-400 — Study Guide. Practice with verified answers in the Microsoft exam hub, or take timed practice tests on ExamRoll.io.

Overview

Modern DevOps practices hinge on predictable, collaborative source control and disciplined repository management. Azure Repos and GitHub provide complementary capabilities for version control, policy enforcement, collaboration, and security. Mastery of branching strategies, pull request workflows, permissions, hooks, large-file handling, migration patterns, security scanning, and versioning is essential for resilient delivery pipelines and auditability. The goal is not only to store code but to create an enforceable, automated system of controls that scales team throughput without sacrificing quality.

Source Control Foundations in Azure Repos and GitHub

Azure Repos supports Git and Team Foundation Version Control (TFVC). Git is distributed, enables local commits, easy branching, and decentralized workflows. TFVC is centralized with server-side versioning, locked check-outs (optional), and is well-suited to legacy solutions with very large binary assets or teams trained on centralized workflows. New development should default to Git; TFVC remains viable when incremental change control and central permissions are paramount and migration cost is prohibitive.

Choose a branching strategy deliberately:

Monorepo versus multi-repo is primarily an organizational and tooling choice:

Ownership and change routing benefit from code ownership declarations. GitHub’s CODEOWNERS file maps paths to mandatory reviewers automatically. In Azure Repos, use path-based required reviewers in branch policies (and CODEOWNERS where enabled) to route reviews to component teams. Complement ownership with branch naming conventions, clear commit messages (e.g., Conventional Commits), and repository templates for consistency.

Governance: Policies, Permissions, and Pull Requests

Branch policies in Azure Repos codify quality gates:

Pull requests orchestrate the integration conversation:

Permissions and protected branches are your last line of defense:

Automation, Hooks, Large Files, and Security

Git hooks harden quality at the edges:

Large File Storage (Git LFS) stores large binaries outside the Git object database, keeping the repo performant:

Security assurance should be shift-left and policy-based:

Migration, Versioning, and Release Management

Migrating from TFVC to Git requires strategy and tooling aligned to risk tolerance:

Adopt semantic versioning for clarity and automation:

Integrate release automation with repository policies: require green builds with release pipelines, block merges without updated changelogs generated from commits, and require signed commits/tags in regulated environments.

Practical Problem Scenario

Starbucks must consolidate multiple legacy applications managed in TFVC into Azure Repos Git while establishing uniform governance, security scanning, and scalable workflows for both services and mobile apps.

  1. Choose branching and repository topology
  1. Migrate TFVC projects to Git with history preservation where it adds value
  1. Establish protected branches and branch policies
  1. Standardize pull request practice
  1. Implement hooks and CI gates
  1. Manage large assets with Git LFS
  1. Integrate Advanced Security
  1. Automate semantic versioning and tagging

This sequence lowers migration risk, enforces consistent quality and security, and streamlines delivery—precisely aligning repository management with scalable DevOps operations.


All domains · CI

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Microsoft →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product