Microsoft DevOps Engineer Expert AZ-400 Practice Question
Contoso Ltd. stores its code in an Azure Repos Git repository that uses a default branch named main. The engineering leadership has mandated trunk-based development so that every team integrates code to main at least once per day. Production is deployed at the end of each 2-week sprint, but critical defects must occasionally be patched immediately, without waiting for the next planned release, and the fixes must flow back to main. Which combination of additional branch types best satisfies these requirements while remaining consistent with trunk-based practices?
A permanent develop branch for day-to-day work and release branches created at the start of every sprint
Short-lived feature branches cut from main and time-boxed release (hotfix) branches created only when an urgent production patch is needed
Personal fork branches for each developer combined with pull requests to main
A single long-lived release branch that receives both feature work and hotfixes and is merged back to main once per quarter
Trunk-based development keeps one persistent integration branch (main) and relies on short-lived topic branches to isolate work. Feature branches are created from main, last only a few hours or days, and are merged back through pull requests so that integration happens continuously. When an urgent production problem occurs, a limited-scope release or hotfix branch is cut from the mainline (often from a tagged commit representing the last release). The hotfix is deployed and then merged back to main so that future work contains the patch. Creating an additional long-lived develop branch, using personal forks, or relying on a single quarterly release branch would all violate core trunk-based principles of frequent integration and minimal parallelism.
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.
Can you explain trunk-based development in simple terms?
Open an interactive chat with Bash
What is the purpose of short-lived feature branches in trunk-based development?
Open an interactive chat with Bash
How do hotfix branches work in trunk-based development?
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 .