DevOps Interview Questions & Answers
DevOps Interview Questions & Answers
DevOps
1. What is Source Code Management?
It is a process through which we can store and manage any code. Developers write code, Testers
write test cases and DevOps engineers write scripts. This code, we can store and manage in Source
Code Management. Different teams can store code simultaneously. It saves all changes separately.
We can retrieve this code at any point of time.
3. What is Git?
Git is one of the Source Code Management tools where we can store any type of code. Git is the most
advanced tool in the market now. We also call Git is version control system because every update
stored as a new version. At any point of time, we can get any previous version. We can go back to
previous versions. Every version will have a unique number. That number we call commit-ID. By using
this commit ID, we can track each change i.e. who did what at what time. For every version, it takes
incremental backup instead of taking the whole backup. That’s why Git occupies less space. Since it
is occupying less space, it is very fast.
3. Local repository: - It is the place where Git stores all commit locally. It is a hidden directory so that
no one can delete it accidentally. Every commit will have unique commit ID.
4. Central repository: - It is the place where Git stores all commit centrally. It belongs to everyone
who is working in your project. Git Hub is one of the central repositories. Used for storing the code
and sharing the code to others in the team.
security. We can copy the repository from one account to other accounts also. This process we call
as “Fork”. In this repository also we can create branches. The default branch is “Master”
commits which are there in your current branch. So picking particular commit and merging into your
current branch we call git cherry-pick.
29. What are the problems that system admins used to face earlier when there were no
configuration management tools?
1. Managing users & Groups is big hectic thing (create users and groups, delete, edit……) 2. Dealing
with packages (Installing, Upgrading & Uninstalling) 3. Taking backups on regular basis manually 4.
Deploying all kinds of applications in servers 5. Configure services (Starting, stopping and restarting
services) These are some problems that system administrators used to face earlier in their manual
process of managing configuration of any machine.
whatever the order you mention in run-list. Because sometimes order is important especially when
we deal with dependent recipes.
74. Advantages of Ansible over other SCM (Source Code Management) tools?
• Agentless
• Relies on “ssh”
• Uses python
• Push mechanism
section. In above example, package task we mention in task section and service task we mention in
handler section so that after installing task only service will be started.
94. What are the ways through which we can do Continues Integration?
are total three ways through which we can do Continues Integration
1. Manually: – Manually write code, then do build manually and then test manually by writing test
cases and deploy manually into clients machine.
2. Scripts: – Can do above process by writing scripts so that these scripts do CI&CD automatically. But
here complexity is, writing script is not so easy.
3. Tool: – Using tools like Jenkins is very handy. Everything is preconfigured in these type of tools. So
less manual intervention. This is the most preferred way.
• Jenkins also acts as crone server replacement. I.e. can do repeated tasks automatically
• Running some scripts regularly
• E.g.: Automatic daily alarm.
• Can create Labels (Group of slaves) (Can restrict where the project has to run)