Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your company hosts a monolithic Git repository in Azure Repos that has grown to 250 GB and contains more than 100 000 files. Developers state that an initial clone takes over an hour and each fetch still transfers hundreds of megabytes. All contributors use Git 2.35 or later on Windows and macOS. You must reduce clone and fetch times without rewriting history or splitting the repository. Which approach should you recommend?
Deploy Scalar on developer workstations and configure sparse-checkout (cone mode) with Git partial clone so that blobs are downloaded only when accessed.
Enable Git LFS for the entire repository, track every file larger than 1 MB, and instruct developers to re-clone using the --no-checkout option.
Run git filter-repo on the server to delete historical objects older than one year and force all developers to re-clone the cleaned repository.
Migrate the repository from Git to Team Foundation Version Control (TFVC) to benefit from server-side workspace mapping.
Scalar installs a service that automatically configures Git partial clone and sparse-checkout (cone mode). With partial clone, only the metadata and tree objects are downloaded initially; file contents (blobs) are fetched on demand, reducing the size and duration of clone and fetch operations. Sparse-checkout further limits the working directory to the paths a developer needs. The server continues to store full history, so no history rewrite or repository migration is required.
A history rewrite with git filter-repo could shrink the repo, but it breaks commit hashes and forces every consumer (including CI pipelines) to migrate, which contradicts the requirement to avoid rewriting history. Switching to TFVC is a migration to a different version-control system rather than an optimization of the existing Git repository. Enabling Git LFS for every file larger than 1 MB would create thousands of pointers and still require an extensive migration; LFS improves binary handling but would not significantly reduce metadata or tree sizes that dominate clone and fetch times for very large repositories.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Scalar and how does it optimize Git repositories?
Open an interactive chat with Bash
What is the difference between sparse-checkout and partial clone?
Open an interactive chat with Bash
Why is Git LFS not suitable for resolving clone and fetch issues in large repositories?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement a source control strategy
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .