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

Interview Questions
Showing 101 - 110 of 325 results
101. Mention some important plugins of Jenkins?

Here are some important plugins which are good to use in Jenkins:-
1 Gits
2 Maven
3 Thin backup plugin
4 Copy Artifact
5 Shelve project
6 Green Balls
7 Amazon EC2
8 Nexus
9 Sonarqube and etc..

102. What are the Jenkins Features?

Jenkins comes with the following features…
1. It is a Free open source.
2. Easy to install on various operating systems
3. Supports Build Pipeline
4. Supports Master/Slave architecture
5. Supports third party tool integration
6. It has both GUI and CLI
7. It has built-in test harness
8. Easily upgradable
9. Records build events/logs
10. Has notifications alerts system (through mails)
11. Supports configuring Environmental Variables
12. Has vast collection of plugins

103. What are the advantages of Jenkins? Why do we use Jenkins?

Jenkins is an automation tool. It saves human time, just one click triggers the Code Build, Tests it and Deploys it to the specified environment.
The Advantages of Jenkins are as follows:
1. Jenkins is free of cost, easy to install and requires almost zero maintenance (easily upgradable).
2. Easy to install on various operating systems as it is platform independent.
3. Execution sequence of jobs can be managed using the build pipeline.
4. Computing power is not limited, we can add any number of machines to it, as it supports Master/Slave architecture.
5. Third party tool integration is very easy, GIT, Maven, Docker, Nexus, Sonarqube etc can be easily integrated.
6. It has both a Graphical User interface and Command line interface.
7. Jenkins test the code before code build as it has built-in test harness
8. Records each and every build events/logs whether the build is success of fail, and notifies all users with an email.
9. Jenkins has more than 1000 plugins used for integrations of hundreds of tools and services. And more than 1500 communities contribute to Jenkins plugins.

104. What is Jenkinsfile?

The Jenkinsfile is a text file written in a groovy script. where all the stages of the pipeline are defined. And it is stored in the root directory of the project and pushed into a source code repository. This file triggers the build of jobs in the pipeline.

105. What is SCM? Which SCM tools are supported in Jenkins?

SCM is a source code management tool that manages the versions of the project code and specifies the path of source code to jenkins (of course to the latest version). And Jenkins supports almost all SCM tools like,
2 Git
3 Perforce
4 AccuRev
5 Subversion
6 Clearcase
8 Mercurial.

106. List some CI Tools that you know?

Here are some Popular CI Tools in the market,
1. Jenkins
2. Gitlab CI
3. Travis CI
4. Circle CI
5. Codeship
6. GO CD
7. Teamcity and
8. Bamboo

107. How to make sure that Jenkins build does not break before complete?

Here are some major points to make sure that the project build does not break.

  • Make sure you have a clean and successful installation of Jenkins.
  • Make sure that all changes in config, POM and code are checked into the repository.
  • Ensure specifying the correct branch/tag while configuring the job.
  • Make sure you configured a correct version of your build tool like maven-3.6.

108. How do you check Jenkins logs?

If you are using Jenkins(jenkins.war file in webapps) in Apache Tomcat then Log files should be at $TOMCAT HOME/logs/catalina.2020-02-02.log.

In Linux:
Log files should be at this location /var/log/jenkins/jenkins.log, unless customized in
(for *.deb) /etc/default/jenkins,
(for */rpm) /etc/sysconfig/jenkins.

In Windows:
Log files should be at this location %JENKINS_HOME%/jenkins.out and %JENKINS_HOME%/jenkins.err, unless customized in %JENKINS_HOME%/jenkins.xml

In Mac OS X:
Log files should be at this location /var/log/jenkins/jenkins.log, unless customized in org.jenkins-ci.plist.

In Docker:
If you run Jenkins inside docker as a detached container, you can use $docker logs < containerId > to view the Jenkins logs.

109. Where does Jenkins store global and job related Configuration?

Jenkins global configurations are stored in "%USER_HOME%/.jenkins/config.xml"
And Jenkins Job configurations are stored in "%USER_HOME%/.jenkins/jobs/%JOB_NAME%/config.xml".

110. How do you change the port number of Jenkins?

Go to %TOMCAT_HOME%/conf/server.xml, Change port number 8080 to whatever you want.
For example : <connector port="xxxx" Protocol ="HTTP/1.1"
Go to %USER_HOME%/.jenkins/config.xml and change the port number as per your need.

Contact us
    +91 9448971000
    +91 9627662769
    +1 (866)693-2179
Available 24x7 for your queries