Courseiva
Design and implement a source control strategyhardMultiple ChoiceObjective-mapped

Minimizing Merge Conflicts After Migrating from TFVC with Feature Branches

Your team is migrating from TFVC to Git in Azure Repos. Developers frequently work on the same files simultaneously. Which Git workflow should you recommend to minimize merge conflicts?

Quick Answer

A feature branch workflow is the fix here: each developer branches off main for a specific change, commits and merges back frequently via pull request, and keeps that work isolated until it's ready. Short-lived branches shrink the window where two people are editing the same file, so conflicts stay small instead of piling up across long-lived branches.

⚠ Common exam trap

Many candidates confuse GitFlow's structured branching model with being conflict-minimizing, when in fact its long-lived branches increase conflict risk, while the simpler feature branch workflow with frequent integration is more effective for simultaneous edits.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Feature branch workflow

The feature branch workflow is ideal for minimizing merge conflicts when developers work on the same files simultaneously because each developer creates a short-lived branch off the main branch for their specific feature or fix, commits frequently, and merges back via pull requests. This isolates changes until they are ready, reducing the surface area for conflicts compared to long-lived branches. Git's merge or rebase strategies within this workflow allow for incremental conflict resolution, which is more manageable than resolving large conflicts from divergent histories.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • GitFlow

    Why it's wrong here

    GitFlow has long-lived branches that often diverge, increasing conflict potential.

  • Forking workflow

    Why it's wrong here

    Best for external contributions, not internal team collaboration.

  • Feature branch workflow

    Why this is correct

    Short-lived feature branches merged frequently reduce conflicts.

  • Centralized workflow

    Why it's wrong here

    Similar to TFVC, does not use branching effectively.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

Courseiva writes every AZ-400 question from scratch — 823 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on AZ-400

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Your team uses a monorepo in Azure Repos with multiple feature branches. You notice that merge conflicts frequently occur because developers are working on the same files. You want to reduce conflicts and improve collaboration. Which branching strategy should you recommend?

medium
  • A.Use release branches for each deployment and cherry-pick commits from main.
  • B.Use trunk-based development with feature flags to merge small, frequent changes.
  • C.Use a single main branch and require all changes to be committed directly.
  • D.Use GitFlow with separate develop and release branches.

Why B: Trunk-based development with feature flags is the correct approach because it encourages developers to merge small, frequent changes into the main branch, reducing the surface area for conflicts. Feature flags allow incomplete features to be hidden in production, enabling continuous integration without requiring long-lived feature branches. This strategy directly addresses the problem of frequent merge conflicts by minimizing divergence between branches.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.