Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your team maintains several microservices in a single Azure DevOps project. Feature branches often remain open for weeks, causing painful merges, and you must be able to ship critical production fixes without blocking ongoing feature work. You need a branch strategy that minimizes integration risk, supports daily continuous integration on the main line, and lets the team deliver parallel hotfixes for supported production versions. Which branching approach meets these requirements?
Adopt trunk-based development with short-lived feature branches merged into the main branch at least daily, and create a release branch only when a version is shipped so hotfixes can be applied independently.
Adopt trunk-based development where developers commit directly to main with no feature branches, and create a release branch only at ship time for hotfixes.
Continue using long-lived feature branches but require developers to rebase and squash-merge into a develop branch, then create a dedicated release branch at the end of each sprint.
Switch to GitFlow with separate develop and release branches; all features merge into develop, and a new release branch is created every sprint, merging back into develop and main.
Trunk-based development encourages developers to integrate small, frequent changes into the main branch, reducing merge complexity and enabling reliable continuous integration. Short-lived feature branches can still be used, but they are merged back into main at least once a day through pull requests. Creating a release branch only when a version goes to production allows independent hotfixes while new features continue in main, meeting the need for parallel production support. GitFlow or long-lived feature branches keep integration deferred, and eliminating feature branches entirely removes the isolation developers need for experiments.
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?
Open an interactive chat with Bash
Why are short-lived feature branches better than long-lived ones?
Open an interactive chat with Bash
How does a release branch help with hotfixes 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 .