Skip to content
$ lynuxpro

INTERVIEW PREP

Interview questions

570 questions from real DevOps, SRE, platform engineering and MLOps interviews, with the answer an interviewer wants to hear. Try answering out loud first, then open the model answer.

Showing 1–6 of 6 questions

Learn Maven & Build Tools →
1.How do you make builds reproducible?Senior

Pin all plugin versions, set project.build.outputTimestamp, use the Maven Wrapper for the Maven version, enforce Java and Maven versions with the enforcer plugin, and verify with artifact:compare.

2.How do you stop builds from pulling dependencies straight from the internet?Senior

Point Maven at an internal repository manager (Artifactory or Nexus) using a mirror in settings.xml. It caches and controls what comes in, can block vulnerable or unapproved packages, and keeps builds working if public repos go down.

3.How do you release a Maven project in CI?Senior

Set the release version, build, tag, deploy to the release repository, then bump to the next SNAPSHOT. Many teams use CI-friendly ${revision} versions or the release plugin, and never redeploy the same release version.

4.How do you enforce rules across many Maven projects?Senior

Use a shared parent POM with the Enforcer plugin (Java version, banned dependencies, dependency convergence), managed plugin versions and BOMs. Add dependency-check or SCA scanning in CI.

5.Maven or Gradle: what are the trade-offs?Senior

Maven is declarative, very standard and predictable, which suits big enterprises. Gradle is faster with incremental builds and caching and is flexible through a Kotlin or Groovy DSL, but builds can become complex scripts. Pick one per organization and standardize.

6.How do you speed up a slow multi-module build?Senior

Run modules in parallel (-T 1C), build only changed modules (-pl -am), cache ~/.m2 in CI, use the Maven build cache extension or mvnd, and move slow integration tests to a separate stage.