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 SonarQube & Code Quality →16.How do you run SonarQube in production on Kubernetes?Senior
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.
17.What should be backed up and how do you upgrade safely?Senior
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.
18.What tokens should CI use?Senior
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.
19.How do you apply one standard across hundreds of projects?Senior
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.
20.How do you roll out SonarQube on a large old code base without annoying teams?Senior
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.