Microsoft DevOps Engineer Expert AZ-400 Practice Question
You maintain a 130 GB mono-repository hosted in Azure Repos Git. Developers complain that simple commands such as git status and git log become progressively slower a few weeks after cloning, even though local disk space is still sufficient. You decide to use the open-source Scalar tool to keep each developer clone performant without asking engineers to remember periodic maintenance steps. Which action should you perform on every existing clone to achieve this goal?
Execute "scalar register" in the root of each local repository.
Re-clone the repository by using "scalar clone --single-branch".
Increase core.preloadIndex to true and raise pack.windowMemory.
Set the configuration value gc.auto to 0 in every clone.
Scalar wraps several Git performance features (commit-graph, multi-pack-index, incremental repack, and prefetch) and can run them automatically through the Windows Task Scheduler or cron. Running "scalar register" inside an already-cloned repository adds the repo to Scalar's maintenance list and installs the scheduled background tasks that keep repository metadata up-to-date. The other options either disable automatic maintenance, require a fresh clone, or modify unrelated configuration and therefore will not continually optimize existing clones.
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 purpose of the 'scalar register' command?
Open an interactive chat with Bash
How do commit-graph and multi-pack-index features improve Git performance?
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 .