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 31–45 of 178 questions

31.How do you release a Maven project in CI?SeniorMaven & Build Tools

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.

32.How do you enforce rules across many Maven projects?SeniorMaven & Build Tools

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.

33.Maven or Gradle: what are the trade-offs?SeniorMaven & Build Tools

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.

34.How do you speed up a slow multi-module build?SeniorMaven & Build Tools

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.

35.Which features need a paid edition?SeniorSonarQube & Code Quality

Branch analysis and merge request decoration need Developer edition or above, and portfolios and reports need Enterprise. Features can move between editions, so check the current comparison.

36.How do you run SonarQube in production on Kubernetes?SeniorSonarQube & Code Quality

Use the official Helm chart, an external managed PostgreSQL, persistent volumes, an Ingress with HTTPS and enough memory. Run one instance in standard editions, because only Data Center supports clustering.

37.What should be backed up and how do you upgrade safely?SeniorSonarQube & Code Quality

Back up the database, since that holds all issues and history. For an upgrade: read the notes, back up, test on a copy, start the new version and open /setup to run the database migration.

38.What tokens should CI use?SeniorSonarQube & Code Quality

A project analysis token with an expiry date. It can only run analyses, so a leak does less harm than a personal or admin token.

39.How do you apply one standard across hundreds of projects?SeniorSonarQube & Code Quality

Use a shared default quality gate, company profiles that extend Sonar way, permission templates, a shared CI template for the scan job, and scripts that create projects through the web API.

40.How do you roll out SonarQube on a large old code base without annoying teams?SeniorSonarQube & Code Quality

Start with Clean as You Code on new code only, keep the gate realistic, add rules in small steps, give a clear exception process with owners and end dates, and measure trends rather than rank people.

41.How do you stop storage from growing forever?SeniorJFrog Artifactory & Nexus

Define retention rules, such as removing old snapshots and unused files, while keeping releases and files marked keep=true. Dry run first, delete with AQL or cleanup policies, then run garbage collection to free the space.

42.What does Xray do?SeniorJFrog Artifactory & Nexus

It reads inside artifacts and images, lists the components, and checks them against vulnerability and license data. Policies and watches can fail builds or block downloads, and it can warn later when a new CVE affects a file you shipped.

43.How do you secure a pipeline's access to Artifactory?SeniorJFrog Artifactory & Nexus

Use a dedicated CI user with only the needed permissions, a short-lived token stored as a masked and protected CI variable, or OIDC so no secret is stored. Never use the admin account.

44.How do you make the pipeline safe against vulnerable images?SeniorJFrog Artifactory & Nexus

Scan the image or build in CI with Xray and fail on Critical findings. Only promote images that pass, and use a policy gate or approval before prod.

45.Describe a highly available Artifactory setup.SeniorJFrog Artifactory & Nexus

Two or three nodes in different zones behind a load balancer, one managed PostgreSQL with failover, and shared object storage. Add backups of the database, filestore, config and master key, and test restores.