DEVELOPMENT-LIFECYCLE-AND-DEPLOYMENT-ARCHITECT practice question 1 of 30

Universal Containers (UC) has multiple development teams that work on separate streams of work, with different timelines. Each stream has different releases of code and config, and the delivery dates differ between them. What is a suitable branching policy to recommend?

Full set: 227 questions
Answer options
A: Leaf-based development
B: Trunk-based development
C: GitHub flow Correct answer
D: Scratch-org-based development
Correct Answer:
C. GitHub flow
Explanation

The scenario describes multiple teams working on separate, parallel development streams with independent release schedules. This requires a branching strategy that isolates work to prevent conflicts and allow for different release cadences. GitHub Flow, a lightweight, branch-based workflow, facilitates this by having developers create separate feature branches for each stream of work. These branches can be developed and released independently. While GitFlow is often used for more complex release management, GitHub Flow is a suitable and common strategy among the choices provided.

Why Incorrect

A. Leaf-based development: This is not a standard, industry-recognized term for a source control branching policy, making it an invalid choice.
B. Trunk-based development: This model involves all developers committing to a single main branch (trunk), which is unsuitable for managing multiple separate streams with different release timelines.
D. Scratch-org-based development: This describes an environment strategy (using ephemeral orgs), not a version control branching policy. Branching policies dictate how code is managed in the repository.

References

1. Salesforce Architects, Development and Release Best Practices for Salesforce. "For teams that need to support multiple releases in production at the same time, a branching strategy like Git Flow is recommended." While GitFlow isn't an option, this highlights the need for a branch-based model, which GitHub Flow (C) is.

2. GitHub Guides, Understanding the GitHub flow. "This is the core of the GitHub flow... Anything in the main branch is deployable. Because of this, it's extremely important that your new branch is created off of main when working on a feature or a fix." This describes the isolation needed for parallel streams.

3. Atlassian, Comparing Workflows. "The Gitflow workflow is ideal for projects with a scheduled release cycle... The GitHub flow is a simpler alternative to Gitflow... ideal for... continuous delivery." Given the options, GitHub flow is the best fit for isolated, parallel work.

Scroll to Top