Scrivio Interview library

Version control and CI for Java

14 questions in 4 subtopics.

Branching strategies

ConceptFoundations6 min read
Compare trunk-based development with GitFlow for a team deploying a Spring Boot service several times a day.
ScenarioIntermediate6 min read
Your team's feature branches live for three weeks and merges regularly break main. What changes would you make to process and tooling?
LeadershipAdvanced6 min read
You need to support three released versions of an on-premises Java product while continuing development on main. Design the branching and backport process.
ScenarioPrincipal6 min read
A regulated business requires that every production change is traceable to a reviewed commit and an approved release. Engineers want trunk-based development with continuous deployment. How do you reconcile the two?

CI pipelines for Java

DesignFoundations6 min read
Describe a CI pipeline for a Spring Boot service from pull request to a deployable artifact.
DebuggingIntermediate7 min read
Integration tests using Testcontainers pass locally but time out intermittently in CI. What would you check?
DesignAdvanced6 min read
Design shared CI templates for 100 Java repositories so that teams get consistent builds but can still customise.
LeadershipPrincipal6 min read
Looking at the last decade, how have CI and delivery practices changed what a Java build must provide, and what would you prioritise in the next few years?

Build performance

ScenarioFoundations6 min read
Your Maven build takes 8 minutes locally. Name the first things you would try to speed up the edit-compile-test loop.
ScenarioIntermediate6 min read
CI test time grew from 10 to 40 minutes as the Spring Boot test suite grew. How do you find where time goes and reduce it?

Release versioning

ConceptFoundations6 min read
What do SNAPSHOT and release versions mean in Maven, and why should a production deployment never use a SNAPSHOT dependency?
DesignIntermediate6 min read
Compare the maven-release-plugin with CI-friendly versions (${revision}) for releasing a service on every merge to main.
LeadershipAdvanced6 min read
How should internal shared libraries be versioned so that 200 services can upgrade safely?
LeadershipPrincipal6 min read
Your company publishes Java client libraries to external customers who stay on old versions for years. What versioning and support policy would you set, and what does it cost?