Microsoft DevOps Engineer Expert AZ-400 Practice Question
You are designing a branching strategy for an Azure Repos Git project that supports 150 developers. Each developer must integrate code several times per day, and the automated build pipeline should always run from a single branch to maintain a linear history. In addition, production hotfixes must be delivered quickly without blocking ongoing feature development. Which branching model best satisfies these requirements?
Feature branching that keeps a dedicated branch per feature until it is completed at the end of each sprint
Forking workflow where each developer works in a personal fork and merges back to the upstream repository only at milestone completion
Trunk-based development with a single main branch and short-lived feature and hotfix branches merged at least daily
GitFlow with long-lived develop, feature, release, and hotfix branches
Trunk-based development keeps a single long-lived trunk (often named main) that every developer merges into at least once per day, so the build pipeline can always build from one branch with a linear history. Short-lived feature branches are created only when necessary and are merged back rapidly, minimizing integration risk. Hotfix and release branches are also cut from the trunk, allowing urgent fixes to ship immediately while normal feature work continues. GitFlow and other long-lived feature branching models intentionally introduce multiple permanent branches (for example, develop or feature branches) that delay integration and complicate the history. A forking workflow spreads work across personal repositories, which hampers the required frequent integration and centralized CI.
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 trunk-based development, and how does it work?
Open an interactive chat with Bash
Why is GitFlow branching unsuitable for quick hotfixes?
Open an interactive chat with Bash
How does trunk-based development handle integration risks?
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 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .