AZ-400 Practice Question: Design and implement a source control strategy
Which TWO are valid reasons to use a monorepo?
⚠ Common exam trap
Many exam-takers confuse the theoretical benefits of isolation (C and D) with the practical reality of monorepos, which trade isolation for simplified sharing and unified versioning, while clone size (A) is actually larger, not smaller.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Simplifies code sharing and reuse across multiple projects.
A monorepo centralizes all code in a single repository, making it straightforward to share common libraries, utilities, and components across multiple projects without needing separate package feeds or submodule references. Option E is correct because with all projects in one repo, dependency versions are unified and managed in a single set of manifest files (e.g., package.json, requirements.txt), eliminating cross-repo version drift and simplifying coordinated updates.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Smaller clone size compared to multiple repositories.
Why it's wrong here
In a monorepo, the entire organization's codebase—including all projects and their full history—resides in one repository, so cloning it typically produces a larger download than cloning an individual repository. Sparse-checkout and shallow clones can mitigate this, but they are workarounds rather than a default advantage of monorepo.
- ✓
Simplifies code sharing and reuse across multiple projects.
Why this is correct
Because all code lives in a single repository, projects can share internal libraries and components directly without needing to publish and consume separate packages from an external registry. This enables immediate reuse and atomic, cross-project changes in the same commit, which simplifies refactoring and speeds up development.
- ✗
Allows independent CI/CD pipelines for each project.
Why it's wrong here
Independent CI/CD pipelines are a feature of polyrepo architectures, not monorepos, because monorepos share a single repository and typically require coordinated pipeline triggers or build orchestration to manage dependencies between projects. This option is tempting because decoupled pipelines are indeed desirable for autonomous team workflows, and in a polyrepo setup where each project has its own repository, independent CI/CD pipelines would be the correct choice to enable isolated testing and deployment.
- ✗
Improves security by isolating each project.
Why it's wrong here
Monorepos concentrate code and history in one place, so a compromise grants broader visibility and a larger blast radius; isolating projects in separate repositories limits cross-project access and is the security benefit of polyrepo architecture.
- ✓
Simplifies dependency management and versioning.
Why this is correct
With all projects and their dependency manifests in one repository, teams can unify dependency versions, use a single lockfile, and coordinate upgrades across services in one atomic commit. This avoids version-mismatch drift and makes audit, refactor, and release processes much easier.
Go deeper
Related to this question
Learn chapter
Managing Build Quality and Package Dependencies
Key term
JSON
JSON is a lightweight, text-based format for storing and exchanging data that is easy for humans to read and write and easy for machines to parse and generate.
Key term
Repository
A repository is a central storage location where software packages, code, or configuration files are kept, managed, and distributed for use by IT systems.
About these practice questions
This AZ-400 question is part of Courseiva's 823-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.