Menu ×

Interview Preparation Guide

Most Asked DevOps Interview Questions

Here we have compiled the most probable DevOps interview questions asked in the industry. You will learn about software version control, Git repository, reverting a commit in Git, Vagrant, continuous testing elements, and the importance of continuous integration, testing, and deployment. These questions are curated after discussing with many interviewers and DevOps Training experts.

DevOps Tools

Git
Maven
Jenkins
Docker
Ansible
Terraform
Kubernetes
Tomcat
linux
Interview Questions
Showing 131 - 140 of 325 results
131. Let us say you have a Jobs in the pipeline. The 1st job was successful, but the 2nd Failed, what to do next?

You should restart the pipeline from the second job where it failed, by doing "restart from Stage".

132. What syntax does jenkins use to schedule build jobs or SCM polling?

The Cron Syntax, it is represented using five asterisks (* * * * *) each separated by a space. The Syntax is as follows [Minute] [Hours] [Day Of the Month] [Month] [Day Of the Week].
For Example:
If you want to set up a cron for every Monday at 06 59 AM it would be 59 06 ** 1. Here 59 is a minute and 06 is hour and * represents all days of the month and another star represents all months and 1 denotes monday.
For your clear understanding of Cron Syntax:
MINUTE - Minutes within the hour (0–59)
HOUR - The hour of the day (0–23)
DOM - The day of the month (1–31)
MONTH - The month (1–12)
DOW - The day of the week (0–7) where 0 and 7 both are Sunday.

133. What is Devops ? In which stage the jenkins come into picture?

Devops is a culture followed by the company to collaborate, communicate, automate and integrate jobs of developers (dev team) and the IT operations. By making the whole product life cycle simpler. In order to improve speed and quality of release, Jenkins plays a Crucial role in DevOps, it automates code integration, automates builds, Tests and automates deployments.

134. Name a Jenkins Environment you have used in shell script Environment or a batch file?

Here are some Jenkins Environment variables used in shell script,
$JOB_NAME
$NODE_NAME
$WORKSPACE
$BUILD_URL
$JOB_URL
$GIT_URL.

135. How to create a Multibranch pipeline in jenkins?

Multibranch pipeline creates a separate Jenkinsfile for each branch in a project. It means it will automatically create a pipeline for each branch and stores in SCM.

136. What are the types of Projects or jobs available in Jenkins?

Different types of jobs/Projects are listed while creating a new job in Jenkins, and those are:

  • Freestyle Project
  • Maven Project
  • Pipeline Project
  • Multibranch pipeline
  • External project
  • Multiconfigurational project
  • GitHub project.

137. What are the System Requirements for installation of Jenkins?

The minimum hardware requirements:

  • 256 MB of RAM
  • 1 GB of drive space
And recommended hardware configuration for a small team:
  • 1 GB+ of RAM
  • 50 GB+ of drive space.

138. What is the Jenkins Pipeline? What is the CI/CD pipeline?

Pipeline is a group of jobs that are chained and integrated in sequence to execute. The automation of Pipeline jobs (to build, test, release) is CI/CD pipeline. The automated pipeline saves a lot of time in the builds.

139. What are the differences between Jenkins, Bamboo and TeamCity?

JenkinsBambooTeamCity
Jenkins is Open source.Bamboo is very expensive.TeamCity is a little expensive.
Very easy to set up and use.Little complex to set up and use.Setting up and using is easy but not as jenkins.
Has less built in features but there are lots of plugins to integrate.Has more built in features than Jenkins but very less plugins to integrate.Has advanced built in features than jenkins and bamboo, but has less plugins.
Supports cloud hosting.Runs on local machine/ Bitbucket as cloud.Runs on local machine.

140. What is the trigger? How the repository is being polled when a new commit is detected?

Triggers are defined as when and how pipelines should be executed. Jenkins polls SCM periodically at configured time, if it detects the new commit then triggers a build.
Ex: You can create jobs that polls the SCM and triggers when a change is pushed.

Icon Stack with Contact Form
Contact us