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–15 of 23 questions

Learn JFrog Artifactory & Nexus →
1.What is an artifact repository and why use one?Beginner

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.

2.What does 'build once, deploy many' mean?Beginner

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.

3.What are local, remote and virtual repositories?Beginner

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.

4.What is the difference between a release and a snapshot version?Beginner

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.

5.Why should passwords not go in pom.xml?Beginner

The pom is committed to Git, so secrets would leak. Put credentials in settings.xml or in CI variables, and use tokens.

6.Why use a digest instead of a tag for production images?Mid

A tag can be moved to a different image. A digest is a fingerprint of the content, so it always means exactly one image.

7.What is dependency confusion and how do you prevent it?Mid

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.

8.What is build info in JFrog?Mid

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.

9.How do you give permissions in Artifactory?Mid

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.

10.What is promotion?Mid

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.

11.What are properties and AQL?Mid

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.

12.How does Nexus compare to Artifactory?Mid

They do the same job. Nexus calls local, remote and virtual repositories hosted, proxy and group. Artifactory has stronger build info, promotion and replication features. Nexus has a free community edition.

13.How do you stop storage from growing forever?Senior

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.

14.What does Xray do?Senior

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.

15.How do you secure a pipeline's access to Artifactory?Senior

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.