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 121–135 of 475 questions
121.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.
122.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.
123.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.
124.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.
125.What is an artifact repository and why use one?BeginnerJFrog Artifactory & Nexus
It stores files that builds make and use, such as packages and images, with versions. It gives you one safe place, a cache of public libraries, access control and a record of what was built. Builds become faster and repeatable.
126.What does 'build once, deploy many' mean?BeginnerJFrog Artifactory & Nexus
You build an artifact one time and move that same file through dev, test and prod. You never rebuild for production, because a rebuild may differ from what you tested.
127.What are local, remote and virtual repositories?BeginnerJFrog Artifactory & Nexus
Local holds your own files. Remote caches another site such as Maven Central. Virtual gives one address in front of both, so tools need only one URL.
128.What is the difference between a release and a snapshot version?BeginnerJFrog Artifactory & Nexus
A release such as 1.4.2 is fixed and should never be overwritten. A snapshot such as 1.5.0-SNAPSHOT is work in progress and is replaced by each build. Keep them in separate repositories.
129.Why should passwords not go in pom.xml?BeginnerJFrog Artifactory & Nexus
The pom is committed to Git, so secrets would leak. Put credentials in settings.xml or in CI variables, and use tokens.
130.Why use a digest instead of a tag for production images?MidJFrog Artifactory & Nexus
A tag can be moved to a different image. A digest is a fingerprint of the content, so it always means exactly one image.
131.What is dependency confusion and how do you prevent it?MidJFrog Artifactory & Nexus
An attacker publishes a public package with the same name as your private one, hoping tools install it. Prevent it with scoped names, and by making the virtual repository look in your local repository first.
132.What is build info in JFrog?MidJFrog Artifactory & Nexus
A record of one build: the files it produced, the libraries it used, the environment and the Git commit. It lets you trace a file in production back to its source and promote a whole build.
133.How do you give permissions in Artifactory?MidJFrog Artifactory & Nexus
Put users in groups, then create permission targets that give a group actions such as read or deploy on chosen repositories. Use limited, expiring tokens for machines and turn off anonymous access.
134.What is promotion?MidJFrog Artifactory & Nexus
Copying or moving a tested artifact from a dev repository to a prod repository. The file is never rebuilt, so production gets exactly what was tested.
135.What are properties and AQL?MidJFrog Artifactory & Nexus
Properties are key and value labels on files, such as status=approved. AQL is a query language that finds files by repository, date, size and properties.