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 16–20 of 20 questions
Learn Maven & Build Tools →16.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.
17.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.
18.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.
19.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.
20.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.