Sei sulla pagina 1di 11

 

  
 
 
 

DevOps Interview Questions 


 
 
 
 
 
 
 
 
 

 

 

 
 

1.What is DevOps? 
 
DevOps is a Combination of two words i.e.Development and Operations, where both teams 
work together to deliver project effectively with in less time. 
 

2.Stages involved in DevOps? 


 
➢ Development 
➢ Build 
➢ Test 
➢ QA 
➢ Deploy 
➢ Monitor 

3.What are the tools that we use in DevOps? 


 
➢ Git 
➢ Maven 
➢ Selenium 
➢ Jenkins 
➢ Chef 
➢ Ansible 
➢ Puppet 
➢ Docker 
➢ Kubernetes 
➢ Nagios 

4.What is Git? 
 
Git is a Repository where we store our source code. Also we call Git as a SCM(Source Code 
Management) because we manage source code. 

 

We also call Git as version control system where we can store code in versions format. 
 

5.Advantages of Git 
 
➢ Speed​: Git stores code in a snapshot format. It takes incremental backup unlike 
other SCM tools. 
➢ No need Interne​t: Backup copy is present in each and every one’s machines. That’s 
why we call Git as distributed version control system. 
➢ Parallel branching​: Can create any number of branches 
 

6.Stages of Git 
 
➢ Working directory 
➢ Staging area 
➢ Local repository 
➢ Central repository 
 

7.What is working Directory? 


 
It is the place where we create files and modify. 
 

8.What is staging area? 


 
Git takes snapshots in this stage (incremental backup) 
 

9.What is local repository? 


 
It is the place where Git stores code locally in the form of commits. 

 

10.What is central repository? 


 
It is the place where Git stores code centrally in the form of commits. 
 

11.What is Git stash? 


 
Git stash is a temporary storage. It removes content from the file and puts in stash 
repository and gives clean working directory so that we can start new work. 
 
Later on we can bring back the stash item and we can continue our work. 
 

12.What is Git Commit? 


 
Stores changes permanently in local repository we call Git commit. 
 

13.What is Commit Id? 


 
Every time we commit we get commit ID. It contains 40 long alphanumeric characters. 
 
We also call commit ID as version or a version ID. 
 

14.What is branching strategy in Git? 


 
We create branches for parallel development. We can work simultaneously on multiple 
features. For each feature we create each branch. Default branch name is master. 
 

 

15.What is Git Conflict? 


 
When two branches have the same file with the same name but different content. When 
you try to merge these two branches conflict occurs. We need to resolve this conflict 
manually. 
 

16.What Git reset? 


 
Bringing back changes from staging area to work space. 
 

17.What is Git revert? 


 
Bringing back changes from local repository to work space.Git revert creates new commit 
ID. 
 

18.What is Git Tag? 


 
We give a meaningful name to commit ID so that we can remember it easily. 
 

19.What is Git hub? 


 
Github is an online central repository where we store code centrally 
 

20.What is Chef? 
 
Chef is one of the configuration management tools through which, we automate admin 
tasks. 

 

21.What is configuration management? 


 
It is a process through which we automate admin tasks. Where we convert infrastructure 
into code. 
 

22.Advantage of configuration management? 


 
➢ Complete automation 
➢ Increase uptime 
➢ Improve performance 
➢ Reduce cost 
 

23.List of configuration management tools? 


 
➢ Chef 
➢ Ansible 
➢ Puppet 
➢ Salt Stack 
 

24.What are the stages of Chef? 


 
Chef workstation ( where we write the code) 
Chef Server (where we store the code) 
Chef node(where we apply the code) 
 

25.What is cookbook? 
 

 

Cookbook is a folder where we keep recipes. 


 

26.What is recipe? 
 
Recipe is a file where we write the code in Ruby language. 

27.What is Knife? 
 
It is a tool, which is responsible to establish the communication among Chef Workstation, 
Chef Server and Chef node. 
 

28.What is Ohai? 
 
It is a system discovery tool which stores system information. 
 

29.What is Idempotency? 
 
Tracking the state of system resources so that changes should not reapply repeatedly. 
 

30.What Chef supermarket? 


 
It is an online storage for Chef Cookbooks which is being maintained by Chef Company. 
 

31.What is Berks file? 


 
We use Berks file to manage dependencies. 
 

 

32.What is Chef Client? 


 
Chef client is a tool which runs frequently from Chef node to Chef server to pull the code. 
 

33.What is Run List? 


 
Run List is the list of recipes mention in a sequence order to applying nodes. 
 

34.What is include_recipe? 
 
Calling multiple recipes by using one recipe we call include_recipe. 
 

35.What is Bootstrap? 
 
Attaching node to Chef Server is called Bootstrap i.e. bringing any node into Chef 
Environment. 
 

36.What is Chef Roles? 


 
Grouping same family servers in Chef called Role. 
 
Eg: Web server role (contains only web servers) 
 

37.What is Container? 
 
Container is a virtual machine where we can deploy any kind of applications. 

 

38.What is Docker? 
 
Docker is a tool by which we create containers. 
 

39.What are the advantages of Docker? 


 
➢ No need of Gust OS. 
➢ No pre allocation of RAM. 
➢ Less cost 
➢ Less weight. 
➢ Re-usability. 
 

40.Docker components? 
 
➢ Docker image 
➢ Docker container 
➢ Docker file 
➢ Docker registry 
➢ Docker daemon 
 

41.What is Docker image? 


 
Docker image contains OS in the form of layers. 
 

42.What is Docker container? 


 
Docker container is virtual machine created by Docker image. 

 

43.What is Docker file? 


 
It is a file where we give instructions to create Docker image. 
 

44.What is Docker registry? 


 
Docker registry is online storage where we store Docker images publicly. 
 

45.What is Docker daemon? 


 
It is Docker service runs continuously in the background. 
 

46.Ways of creating Docker image? 


 
Pull image from Docker hub/registry. 
Create our own image from Docker container. 
Create Docker image from Docker file. 
 

47.What Docker volume? 


 
Docker volume is a centralized storage where we can store and retrieve data from any 
Docker container. 
 

48.What is Ansible? 
 
10 
 

Ansible is a configuration management tool through which we automate admin tasks. 


 

49.Stages in Ansible? 
 
Ansible server 
Ansible node/host 
 

50.What is playbook in Ansible? 


 
Playbook is a file where we write code in YAML script to create infrastructure. 
 

51.What is inventory file in Ansible? 


 
It is a file where we mentation list of nodes IP/DNS names against whom, the configuration 
to be applied. . 
 

52.What is Ad-Hoc commands in Ansible? 


 
These are quick one liner Linux commands that we execute to meet immediate 
requirements without storing for the future. 
 
 
 
 
 

Potrebbero piacerti anche