nerdexam
Microsoft

AZ-400 · Question #429

Hotspot Question You company uses a Git source-code repository. You plan to implement GitFlow as a workflow strategy. You need to identify which branch types are used for production code and preproduc

The correct answer is Production code:: Main; Preproduction code:: Develop. This question tests knowledge of the GitFlow branching strategy, specifically which branch types serve production and preproduction code purposes. GitFlow defines distinct branch roles for different stages of the software lifecycle.

Submitted by minji_kr· Mar 6, 2026Design and implement a source control strategy

Question

Hotspot Question You company uses a Git source-code repository. You plan to implement GitFlow as a workflow strategy. You need to identify which branch types are used for production code and preproduction code in the strategy. Which branch type should you identify for each code type? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibit

AZ-400 question #429 exhibit

Answer Area

  • Production code:Main
    MainFeatureDevelop
  • Preproduction code:Develop
    MainFeatureDevelop

Explanation

This question tests knowledge of the GitFlow branching strategy, specifically which branch types serve production and preproduction code purposes. GitFlow defines distinct branch roles for different stages of the software lifecycle.

Approach. In GitFlow, the 'main' (or 'master') branch always reflects production-ready code - it contains only released, stable code that has been deployed to production. The 'develop' branch serves as the integration branch for preproduction code, where completed features are merged and tested before being released. Feature branches merge into develop, and when develop is ready for release, it is merged into main via a release branch. Therefore: Production code = main branch, Preproduction code = develop branch.

Concept tested. GitFlow branching strategy: In GitFlow, 'main/master' is the production branch containing release-tagged commits, while 'develop' is the preproduction integration branch. Other branch types include feature branches (short-lived, merge into develop), release branches (stabilization before merging to main), and hotfix branches (emergency fixes off main). Understanding these roles is critical for implementing proper CI/CD pipelines and branch protection policies in Azure DevOps.

Reference. GitFlow Workflow by Vincent Driessen (nvie.com); Microsoft Learn - Implement GitFlow strategy in Azure DevOps

Topics

#GitFlow#branching strategy#Git branches#production code

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice