All jobs / DevOps / SRE / cloud / Git
DevOps / SRE / cloud interview question · 5+ years
Twenty teams. Half deploy from main daily; the rest run Gitflow with release branches that live for weeks and merge back painfully.
What do you standardise, and where do you allow a difference?
The strongest answer
Trunk-based as the default — short-lived branches, feature flags, releases tagged from main — with release branches allowed only where the cadence truly differs, such as app-store or on-premises releases
Why it works
Right — one default that matches daily delivery, and a named, justified exception for cadences that cannot follow it.
What a good answer covers
- Trunk-based by default.
- Short branches, flags, tags from main.
- Exceptions for real cadence differences.
- Never per-customer branches.
Answers that fall short
- Close, but not the strongest: Mandate trunk-based everywhere with no exceptions; consistency is the point
Close, but a mobile app that ships through a store review genuinely needs a stabilisation branch; a rule with no exceptions gets ignored. - Weak: Leave it to each team; the branching model does not really affect how fast anyone delivers
Branch lifetime is one of the strongest drivers of merge pain and delayed integration; it is not a matter of taste. - Red flag: Long-lived branches per customer so every customer can get exactly the fixes they ask for
Per-customer branches are a maintenance explosion and the fastest way to lose track of what any customer runs.
Who gets asked this
More Git questions
- When do you rebase, and when must you never?
- A commit on main broke the build; three teammates have already pulled it. How do you undo it?
- What is a git tag for in a release pipeline?
- Production runs v2.3.0. main has two weeks of unreleased work. A critical bug must ship today. What is your…
- p95 latency doubled somewhere in the 60 commits between last week’s release and today’s. Nothing in the diffs…