CertLumen

Microsoft DevOps Engineer Expert (AZ-400) · Section 2 · 13% of the exam

Configure permissions in the source control repository

One of the objectives of the Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions exam, in the section “Design and implement a source control strategy”. Here is what it covers, the points to remember and a question to try.

What it covers

Git stores every version of every file forever, so big binaries and huge histories slow everyone down. This lesson covers Git LFS and git-fat, the size limits of Azure Repos and GitHub, Scalar, partial and sparse clones, ways to share code across repositories, and how to configure repository and branch permissions in Azure DevOps and GitHub.

Points to remember

  • Git stores full copies of changed binaries; use Git LFS for large changing binaries, Azure Artifacts for dependencies, never commit build output.
  • LFS replaces files with pointers (version, oid, size); install the LFS client and commit .gitattributes first.
  • Azure Repos LFS: free, no SSH for LFS-tracked repos; LFS objects do not count toward the 5 GB push limit.
  • Azure Repos guidance: repo under 250 GB (aim for 10 GB), files under 100 MB, pushes under 5 GB; Maximum file size policy blocks big files.
  • git-fat is a legacy alternative needing its own rsync or cloud store; Git LFS is the native platform choice.

Try a question

A .NET team has committed compiled third-party DLLs into their Azure Repos Git repository, and clones are getting slower. Following Microsoft's guidance, where should these dependencies live?

  1. AIn Azure Artifacts as versioned packages that the build restores
  2. BIn the repository, tracked with a .gitignore exception and committed with the rest of the source code
  3. CIn a Git submodule inside the same repository
  4. DIn the pipeline's variable library
Show the answer

A. Microsoft's guidance is to keep source in Git and deliver dependencies through package management. Packages are versioned, so code tested in one environment gets the same dependencies in another, and they stay out of the repository history.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Large files, repository scaling and permissions teaches this objective (about 45 minutes), and 15 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.

More in this section

← Previous objective · All 86 objectives · Next objective →