az-400 Practice Question 1975
Exam: az-400
Domain: Design and implement source control
Topic: Design and implement a source control strategy
Difficulty: medium
In a scenario where a team is working on a large-scale application with multiple developers, which branching strategy would you recommend to maintain a stable production environment while allowing for parallel development and feature branches? Explain your choice and how it aligns with branch policies and pull request reviews.
Answer Options
A
Trunk-based development
B
GitFlow
C
Feature-branching
D
Release-branching
Correct Answer
A: Trunk-based development
Explanation
Trunk-based development is recommended in this scenario because it allows for frequent and small commits directly into the trunk, ensuring that the production codebase remains stable. This approach also supports parallel development through feature branches that are merged back into the trunk after thorough testing and review via pull requests. The use of branch policies can enforce coding standards and security checks, while pull request reviews ensure code quality and alignment with project goals.