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 46–60 of 224 questions

46.What is the difference between a quality profile and a quality gate?MidSonarQube & Code Quality

A profile is the list of rules to check for a language and it creates issues. A gate is the pass or fail judgment on the resulting numbers.

47.Why extend Sonar way instead of copying it?MidSonarQube & Code Quality

An extended profile inherits from its parent, so new rules added to Sonar way arrive automatically. A copy goes stale.

48.What is a security hotspot?MidSonarQube & Code Quality

Sensitive code that needs a person to decide if it is safe, such as a weak hash. The reviewer marks it Safe, Acknowledged or Fixed. The gate usually requires all new hotspots to be reviewed.

49.What is SonarQube for IDE (SonarLint) and why use connected mode?MidSonarQube & Code Quality

It is an editor plugin that shows issues as you type. Connected mode uses your server's quality profile and decisions, so the IDE and the server agree.

50.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.

51.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.

52.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.

53.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.

54.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.

55.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.

56.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.

57.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.

58.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.

59.Your merge request pipeline is missing some jobs. What is the most likely cause?MidGitLab CI/CD

Jobs without rules don't run in merge request pipelines (their old default only covers branches and tags). Add rules to them, for example rules: - when: on_success, or rules that match merge_request_event. Also check workflow: rules, which can filter out the whole pipeline.

60.How do you stop getting two pipelines (branch and merge request) for one push?MidGitLab CI/CD

Use workflow: rules. Run a pipeline for merge request events, skip branch pipelines when the branch has an open MR ($CI_OPEN_MERGE_REQUESTS), and keep branch pipelines otherwise. GitLab ships this as the Workflows/MergeRequest-Pipelines template.