Microsoft DevOps Engineer Expert AZ-400 Practice Question
A development team is migrating a four-year-old Git repository that contains roughly 8 GB of Photoshop (PSD) and PNG assets to Azure Repos. During a trial push, the operation is rejected because several objects are larger than 100 MB. The team must preserve the assets in the repository history, reduce clone size, and allow future pushes of the same file types without further rejections or manual steps. Which approach should you recommend?
Install git-fat on developer machines so that large files are stored outside Git when the repository is pushed to Azure Repos.
Use a sparse checkout to exclude the graphics directory locally, then push the existing repository to Azure Repos.
Split the repository with git filter-repo and keep the binary assets only on a separate branch before pushing.
Rewrite the repository with git lfs migrate import to convert *.psd and *.png files to LFS pointers, then push to Azure Repos with Git LFS enabled.
Git Large File Storage (LFS) stores the binary content outside the normal Git object database and leaves a small pointer in the repository, so clone and fetch operations transfer only the pointer unless the actual file is requested. The command git lfs migrate import rewrites existing commits, replacing matching file patterns with LFS pointers so that the original large blobs are removed from history. After the migration, pushes succeed because no individual Git object exceeds the Azure Repos 100 MB limit, and future commits of those file types are automatically handled by LFS. Sparse checkout and repository splitting leave the large objects in the history that is pushed, so the size limitation still applies. Azure Repos does not provide server-side support for git-fat, and simply initializing git-fat on clients would not prevent large objects from being rejected.
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 Git LFS and why is it needed?
Open an interactive chat with Bash
How does the git lfs migrate import command work?
Open an interactive chat with Bash
What are the advantages of using Git LFS over alternatives like sparse checkout or repository splitting?
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 .