Version control and CI for Java
14 questions in 4 subtopics.
Branching strategies
Compare trunk-based development withGitFlow for a team deploying a Spring Boot service several times a day.Your team's feature branches live for three weeks and merges regularly break main. What changes would you make to process and tooling?You need to support three released versions of an on-premises Java product while continuing development on main. Design the branching and backport process.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
Describe a CI pipeline for a Spring Boot service from pull request to a deployable artifact.Integration tests using Testcontainers pass locally but time out intermittently in CI. What would you check?Design shared CI templates for 100 Java repositories so that teams get consistent builds but can still customise.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
Your Maven build takes 8 minutes locally. Name the first things you would try to speed up the edit-compile-test loop.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
What do SNAPSHOT and release versions mean in Maven, and why should a production deployment never use a SNAPSHOT dependency?Compare the maven-release-plugin with CI-friendly versions (${revision}) for releasing a service on every merge to main.How should internal shared libraries be versioned so that 200 services can upgrade safely?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?No question matches these choices.