DevOps Interview Questions

What is DevOps? Introduction to DevOps 2

Q21) How can you define particular space to the file

This feature is generally used to give the swap space to the server. Lets say in below machine I have to create swap space of 1GB then,

dd if=/dev/zero of=/swapfile1 bs=1G count=1

Q22) what is concept of sudo in linux?

Sudo(superuser do) is a utility for UNIX- and Linux-based systems that provides an efficient way to give specific users permission to use specific system commands at the root (most powerful) level of the system.

Q23) what is a Jenkins Pipeline?

integrating continuous delivery pipelines into Jenkins.

Q24) How to stop and restart the Docker container?

AWS Interview Questions 7

To stop the container: docker stop container ID

Now to restart the Docker container: docker restart container ID

Q25) What platforms does Docker run on?

Docker runs on only Linux and Cloud platforms:

Ubuntu 12.04 LTS+

Fedora 20+

RHEL 6.5+

CentOS 6+



openSUSE 12.3+

CRUX 3.0+


Amazon EC2

Google Compute Engine

Microsoft Azure


Note that Docker does not run on Windows or Mac for production as there is no support, yes you can use it for testing purpose even in windows

Q26) what are the tools used for docker networking?

For docker networking we generally use kubernets and docker swarm.

What is DevOps? Introduction to DevOps 8

Q27) what is docker compose?

Lets say you want to run multiple docker container, at that time you have to create the docker compose file and type the command docker-compose up. It will run all the containers mentioned in docker compose file.

Q28) What is Scrum?

Scrum is basically used to divide your complex software and product development task into smaller chunks, using iterations and incremental practises. Each iteration is of two weeks. Scrum

consists of three roles: Product owner, scrum master and Team

Q29) What does the commit object contain?

Commit object contain the following components:

It contains a set of files, representing the state of a project at a given point of time reference to parent commit objects

What is DevOps? Introduction to DevOps 9

An SHAI name, a 40-character string that uniquely identifies the commit object (also called as hash).

Q30) Explain the difference between git pull and git fetch?

Git pull command basically pulls any new changes or commits from a branch from your central repository and updates your target branch in your local repository.

Git fetch is also used for the same purpose, but its slightly different form Git pull. When you trigger a git fetch, it pulls all new commits from the desired branch and stores it in a new branch in your local repository. If we want to reflect these changes in your target branch, git fetch must be followed with a git merge. Our target branch will only be updated after merging the target branch and fetched branch. Just to make it easy for us, remember the equation below:

What is DevOps? Introduction to DevOps 4

Git pull = git fetch + git merge

Q31) How do we know in Git if a branch has already been merged into master?

The above command lists the branches that have been merged into the current branch.

this command lists the branches that have not been merged.

Before committing a file, it must be formatted and reviewed in an intermediate area known as

#git add <file_name>

Q33) What is Git Stash?

do a commit of your half-done work just, so you can get back to this point later. The answer to this issue is Git stash.

Git Stashing takes your working directory that is, your modified tracked files and staged changes and saves it on a stack of unfinished changes that you can reapply at any time.

What is DevOps? Introduction to DevOps 5

Q34) What is Git stash drop?

the last added stash item by default, and it can also remove a specific item if you include it as an argument.

I have provided an example below:

If you want to remove any particular stash item from the list of stashed items you can use the below commands:

git stash list: It will display the list of stashed items as follows:

stash@{0}: WIP on master: 049d080 added the index file

stash@{2}: WIP on master: 13d80a5 added number to log

Git uses our username to associate commits with an identity. The git config command can be

AWS Interview Questions 8

used to change our Git configuration, including your username.

Suppose you want to give a username and email id to associate commit with an identity so that you can know who has made a commit. For that I will use:

Q36) How can you create a repository in Git?

To create a repository, you must create a directory for the project if it does not exist, then run


Q37) Describe the branching strategies you have used?

Generally, they ask this question to understand your branching knowledge

Feature branching

This model keeps all the changes for a feature inside of a branch. When the feature branch is fully tested and validated by automated tests, the branch is then merged into master.

Jenkins interview questions

Task branching

In this task branching model each task is implemented on its own branch with the task key included in the branch name. It is quite easy to see which code implements which task, just look for the task key in the branch name.

Release branching

Once the develop branch has acquired enough features for a release, then we can clone that branch to form a Release branch. Creating this release branch starts the next release cycle, so no new features can be added after this point, only bug fixes, documentation generation, and

merged into master and then tagged with a version number. In addition, it should be merged back

Azure Interview Questions

into develop branch, which may have progressed since the release was initiated earlier.

Q38) What is Jenkins?

Jenkins is an open source continuous integration tool which is written in Java language. It keeps a track on version control system and to initiate and monitor a build system if any changes occur. It monitors the whole process and provides reports and notifications to alert the concern team.

Q39) What is the difference between Maven, Ant and Jenkins?

Maven and Ant are Build Technologies whereas Jenkins is a continuous integration(CI/CD) tool.

Q40) Explain what is continuous integration?

When multiple developers or teams are working on different segments of same web application, we need to perform integration test by integrating all the modules. To do that an automated process for each piece of code is performed on daily bases so that all your code gets tested. And this whole process is termed as continuous integration

Windows Azure Interview Questions