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 136–150 of 475 questions
136.How does Nexus compare to Artifactory?MidJFrog Artifactory & Nexus
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.
137.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.
138.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.
139.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.
140.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.
141.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.
142.What are RPO and RTO and how do they guide disaster recovery?SeniorJFrog Artifactory & Nexus
RPO is how much data you can afford to lose. RTO is how long you can be down. Short targets need warm standby or active-active with replication. Longer targets can use backup and restore.
143.When would you use federated repositories?SeniorJFrog Artifactory & Nexus
When teams in several regions need the same repository with fast local access. Members stay in sync both ways. For one-way copies or backups, use push or pull replication instead.
144.Your Artifactory is slow. How do you approach it?SeniorJFrog Artifactory & Nexus
Measure first: request times, CPU, memory, database connections, disk and network. Then fix the cause, for example replicate near far teams, reduce huge folders, clean up, tune the database or add nodes, and have CI cache dependencies.
145.Why does a Maven deploy of an existing release fail?MidJFrog Artifactory & Nexus
Release versions must never change, so users without overwrite permission get 403 Forbidden. Publish a new version number instead of overwriting.
146.How do you write the address of a Docker image in Artifactory?MidJFrog Artifactory & Nexus
With the repository path method it is HOST/REPOSITORY/IMAGE:TAG, for example repo.example.com/docker-dev-local/shop-api:1.4.2. Sub-domain and port methods also exist, but need extra DNS or ports.
147.Why is replication not a backup?SeniorJFrog Artifactory & Nexus
Replication copies changes, including mistakes. If syncDeletes is on, an accidental delete can spread to every site. You still need separate, tested backups of the database and filestore.
148.What is the difference between a pipeline, a stage and a job?BeginnerGitLab CI/CD
A job is a list of commands that runs in a fresh environment and passes or fails. A stage is a group of jobs that run at the same time. A pipeline is one run of all the jobs for one commit. Stages run in order, and the next stage starts only when every job in the stage before it passed.
149.What is a GitLab runner?BeginnerGitLab CI/CD
A program that runs the jobs. It connects out to GitLab, asks for work, runs each job (usually in a Docker container or a Kubernetes pod) and sends back the log and artifacts. GitLab.com gives you shared runners; companies often run their own for speed, cost, special hardware or access to private networks.
150.What is the difference between artifacts and cache?BeginnerGitLab CI/CD
Artifacts pass a job's results (like a dist/ folder or a test report) to later jobs, and they must be there. Cache keeps downloaded packages (like .npm/) between pipelines to save time, and it may be missing. If a job would be wrong without the files, use artifacts; if it would only be slower, use cache.