SlideShare a Scribd company logo
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
DevOps Interview Preparation 2019
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
DevOps Demands
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
DevOps Market
According to the “Global DevOps Platform Market 2016-2020”, created by the research firm Research and Markets, the
DevOps market should see a steady growth rate of around 20 percent (compound annual growth rate of 19.42%) through
the end of the decade.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Average Salary of a DevOps Practitioner
$50,000 - $75000$75,000 - $99,000
$100,000 - $125,000
$25,000
$75,000 - $99,999
$25,000
Team Size
Experience
$25,000
Source: https://puppet.com/resources/whitepaper/2016-state-of-devops-report
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Enterprise Adoption Of DevOps
Source: http://rightscale7.rssing.com/chan-14813591/all_p7.html
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
DevOps Interview Questions
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Classification Of DevOps Interview Questions
Generic DevOps Questions
Source Code Management Questions
Continuous Integration Questions
Configuration Management Questions
Continuous Monitoring Questions
Containerization And Virtualization Questions
Jenkins
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
Q1. What is DevOps?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
Q1. What is DevOps?
Source Code
Management
Continuous
Integration
Continuous
Testing
Configuration
Management
Continuous
Monitoring
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
Q2. How is DevOps different from Agile?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
Q2. How is DevOps different from Agile?
DevOps
Agile
Development Start Development End
Release Production Support
Development Operations
Testing
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
Q3. What is the need for DevOps?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
Q3. What is the need for DevOps?
Increase
deployment
frequency
Lower
failure rate
of new
releases
Shortened
lead time
between
fixes
Faster mean
time to
recovery in
the event of
new release
failure
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
Q4. Name some top DevOps tools and how these tools work together?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Generic DevOps Questions
Q4. Name some top DevOps tools and how these tools work together?
Production
Production
Production
Pulls the code
from Git
repository
Builds/Compile
the code
Test the build
software
Provisions the production and testing servers
Docker containers provide the consistent computing environment
throughout the SDLC
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management
Questions
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q5. What functions does Git performs in DevOps?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q5. What functions does Git performs in DevOps?
Every time a commit is made in the Git repository, Continuous Integration server pulls it and
compiles it and also deploys it on the test server for testing
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q6. Explain Git’s distributed architecture?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q6. Explain Git’s distributed architecture?
Collaborator
Remote
Repository
Local
Repo
Local
Repo
Local
Repo
Local
Repo
Local
Repo
Collaborator
Collaborator
CollaboratorCollaborator
Local
Repo
Collaborator
Commit changes
to source code
Commit changes
to source code
Commit changes
to source code
Commit changes
to source code
Commit changes
to source code
Commit changes
to source code
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q7. In Git how do you revert a commit that has already been pushed and made public?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q7. In Git how do you revert a commit that has already been pushed and made public?
Remove or fix the bad file in a new commit and push it to the remote repository. This is the most natural
way to fix an error. Once you have made necessary changes to the file, commit it to the remote repository
for that I will use
git commit -m “commit message”
Create a new commit that undoes all changes that were made in the bad commit.to do this you can use a
command
git revert <name of bad commit>
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q8. How do you find a list of files that has changed in a particular commit?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q8. How do you find a list of files that has changed in a particular commit?
To get a list files that has changed in a particular commit use the below command:
git diff-tree -r {hash}
Given the commit hash, this will list all the files that were changed or added in that commit. The -r flag makes
the command list individual files, rather than collapsing them into root directory names only.
The output will also include some extra information, which can be easily suppressed by including two flags:
git diff-tree –no-commit-id –name-only -r {hash}
Here –no-commit-id will suppress the commit hashes from appearing in the output, and –name-only will only
print the file names, instead of their paths.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q9. How do you squash last N commits into a single commit?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Source Code Management Questions
Q9. How do you squash last N commits into a single commit?
There are two options to squash last N commits into a single commit:
❑ If you want to write the new commit message from scratch use the following command
git reset –soft HEAD~N &&
git commit
❑ If you want to start editing the new commit message with a concatenation of the existing commit messages then
you need to extract those messages and pass them to Git commit for that I will use
git reset –soft HEAD~N &&
git commit –edit -m”$(git log –format=%B –reverse .HEAD@{N})”
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q10. What is meant by Continuous Integration?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q10. What is meant by Continuous Integration?
Commit Changes To
The Source Code
Build Test Deploy
Continuous
Integration
Server
Feedback
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q11. Mention some of the commonly used Jenkins Plugins
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Plugin Feature
Git Plugin Git plugins are often used in projects to know whether the codes written are stable or not
SSH Plugin These plugin is used to run shell commands through SSH on a remote machine as they are
derived from SCP plugin
Build Pipeline Plugin This plugin provides a Build Pipeline View of upstream and downstream connected jobs that
typically form a build pipeline
Email-ext Plugin This plugin allows you to configure every aspect of email notifications. You can customize
when an email is sent, who should receive it, and what the email says
HTML Publisher Plugin This plugin publishes HTML reports
Multi-slave config Plugin This plugin allows administrators to configure, add and delete several dumb slaves at the
same time
Parameterized Trigger
Plugin
This plugin lets you trigger new builds when your build has completed, with various ways of
specifying parameters for the new build
Q11. Mention some of the commonly used Jenkins Plugins
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q12. Explain Jenkins distributed architecture and what is the need for this architecture?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q12. Explain Jenkins distributed architecture and what is the need for this architecture?
The single Jenkins server was not enough to
meet certain requirements like:
❑ Sometimes you might need several different
environments to test your builds. This cannot
be done by a single Jenkins server
❑ If larger and heavier projects get built on a
regular basis then a single Jenkins server
cannot simply handle the entire load
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q13. How will you secure Jenkins?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q13. How will you secure Jenkins?
❑ Ensure global security is on.
❑ Ensure that Jenkins is integrated with my company’s user directory with appropriate plugin.
❑ Ensure that matrix/Project matrix is enabled to fine tune access.
❑ Automate the process of setting rights/privileges in Jenkins with custom version controlled script.
❑ Limit physical access to Jenkins data/folders.
❑ Periodically run security audits on same.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q14. Explain how you can create a backup and copy files in Jenkins?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Integration Questions
Q14. Explain how you can create a backup and copy files in Jenkins?
This can be done by copying the jobs directory from the old server to the new one. There are multiple ways to do
that, you can:
❑ Move a job from one installation of Jenkins to another by simply copying the corresponding job directory.
❑ Make a copy of an existing job by making a clone of a job directory by a different name.
❑ Rename an existing job by renaming a directory. Note that if you change a job name you will need to change any
other job that tries to call the renamed job.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management
Questions
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q15. Explain various Configuration Management components?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q15. Explain various Configuration Management components?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q16. What is the difference between Asset management and Configuration Management?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q16. What is the difference between Asset management and Configuration Management?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q17. What do you understand by “Infrastructure as code”?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q17. What do you understand by “Infrastructure as code”?
DEV
TEST
PROD
IaC is automation of IT operations
(build, deploy, manage) by provisioning
of code , rather than manual process
Provisioning of Dev, Test and Prod environment
by writing code in one centralized location
Code for the
infrastructure
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q18. What is the difference between Push and Pull Configuration Management?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q18. What is the difference between Push and Pull Configuration Management?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q19. How Puppet works?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q19. How Puppet works?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q20. What are Modules and Manifests in Puppet?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q20. What are Modules and Manifests in Puppet?
Puppet Module
A Puppet Module is a collection of Manifests and data
(such as facts, files, and templates), and they have a
specific directory structure. Modules are useful for
organizing your Puppet code, because they allow you to
split your code into multiple Manifests. Modules are self-
contained bundles of code and data.
You can find pre-defined modules at
forge.puppet.com/modules
Puppet Manifest
Every Slave has got its configuration details in Puppet
Master, written in the native Puppet language. These
details are written in the language which Puppet can
understand and are termed as Manifests. They are
composed of Puppet code and their filenames use
the .pp extension. These are basically Puppet programs.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q21. Explain Chef Architecture
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q21. Explain Chef Architecture
❑ Chef Workstation: All the configurations
are first tested in the Workstation and
then pushed on the Chef Server
❑ Chef Server: It contains all the
Configurations which are pushed on the
Chef Nodes
❑ Chef Node: Nodes can be a cloud based
virtual server or a physical server in
your own data center, that is managed
using central Chef Server
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q22. Write a recipe to install httpd package and copy an index.html file to
the default document root to confirm the installation
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q22. Write a recipe to install httpd package and copy an index.html file to
the default document root to confirm the installation
A Recipe is a collection of resources that describes a particular configuration or policy. It describes everything that is
required to configure part of a system. The user writes Recipes that describe how Chef manages applications and utilities
(such as Apache HTTP Server, MySQL, or Hadoop) and how they are to be configured.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q23. What happens when you don’t specify a Resource’s action in Chef?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q23. What happens when you don’t specify a Resource’s action in Chef?
When you don’t specify a resource’s action, Chef applies the default action.
For ex:
the below resource:
is same as the below resource:
because: create is the file Resource’s default action.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q24. Are these two Chef recipes the same?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q24. Are these two Chef recipes the same?
No, they are not. Because Chef applies resources in the order they appear. So the first Recipe ensures that the httpd
package is installed and then configures the service. The second Recipe configures the service and then ensures the
package is installed.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q25. Is Ansible a Push based or a pull based CM tool?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q25. Is Ansible a Push based or a pull based CM tool?
Server
send specifications
poll for changes
1
2
Version Control System
Orchestrate (SSH)
3
Push Based
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Q26. How does Ansible architecture looks like?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Configuration Management Questions
Modules APIs Plugins
Inventory
Hosts
CMDB
ANSIBLE AUTOMATION
ENGINE
PLAYBOOK
Q26. How does Ansible architecture looks like?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q27. Why is Continuous Monitoring necessary?
Continuous Monitoring allows timely identification of problems or weaknesses in the software
and quick corrective action that helps reduce expenses of an organization.
Continuous monitoring provides solution that addresses three operational disciplines known as:
Continuous Audit
Continuous Controls Monitoring
Continuous Transaction Inspection
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q27. Why is Continuous Monitoring necessary?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q28. How does Nagios work?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q28. How does Nagios work?
❑ Nagios runs on a server, usually as a daemon or service. Nagios periodically runs plugins residing on the same server,
they contact hosts or servers on your network or on the internet. One can view the status information using the web
interface. You can also receive email or SMS notifications if something happens.
❑ The Nagios daemon behaves like a scheduler that runs certain scripts at certain moments. It stores the results of those
scripts and will run other scripts if these results change.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q29. What is NRPE (Nagios Remote Plugin Executor) in Nagios?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q29. What is NRPE (Nagios Remote Plugin Executor) in Nagios?
NRPE addon is designed to allow you to execute Nagios plugins on remote Linux/Unix machines. The main reason for doing
this is to allow Nagios to monitor “local” resources (like CPU load, memory usage, etc.) on remote machines.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q30. When Does Nagios Check for external commands?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q30. When Does Nagios Check for external commands?
Nagios check for external commands under the following conditions:
❑ At regular intervals specified by the command_check_interval option in the main configuration file or,
❑ Immediately after event handlers are executed. This is in addition to the regular cycle of external command checks
and is done to provide immediate action if an event handler submits commands to Nagios.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q31. What is the difference between Active and Passive check in Nagios?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q31. What is the difference between Active and Passive check in Nagios?
The major difference between Active and Passive checks is that Active checks are initiated and performed by Nagios,
while passive checks are performed by external applications.
Passive checks are useful for monitoring services that are:
❑ Asynchronous in nature and cannot be monitored effectively by polling their status on a regularly scheduled basis.
❑ Located behind a firewall and cannot be checked actively from the monitoring host.
The main features of Actives checks are as follows:
❑ Active checks are initiated by the Nagios process.
❑ Active checks are run on a regularly scheduled basis.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q32. Explain how Flap Detection works in Nagios?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Continuous Monitoring Questions
Q32. Explain how Flap Detection works in Nagios?
Storing the results of the last 21 checks of the host or service analyzing the historical
check results and determine where state changes/transitions occur.
Using the state transitions to determine a percent state change value (a measure of
change) for the host or service.
Comparing the percent state change value against low and high flapping thresholds
A host or service is determined to have started flapping when its percent state
change first exceeds a high flapping threshold.
A host or service is determined to have stopped flapping when its percent state
goes below a low flapping threshold.
Flapping occurs when a service or host changes state too frequently, this causes lot of problem and recovery notifications.
Whenever Nagios checks the status of a host or service, it will check to see if it has started or stopped flapping. Nagios
follows the below procedure to do that:
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization
Questions
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q33. What are Containers?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q33. What are Containers?
A container consists of an entire runtime environment: an application, plus all its dependencies, libraries and other
binaries, and configuration files needed to run it, bundled into one package. Containerizing the application platform
and its dependencies removes the differences in OS distributions and underlying infrastructure.
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q35. Imagine a scenario when a large application is broken into smaller composable pieces and each of those
pieces have their own set of dependencies, let us call these pieces as Microservices. In order to run each of these
Microservices what will you use
1. Containers
2. Virtual Machines
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q35. Imagine a scenario when a large application is broken into smaller composable pieces and each of those
pieces have their own set of dependencies, let us call these pieces as Microservices. In order to run each of these
Microservices what will you use
1. Containers
2. Virtual Machines
Virtual Machines for
starting multiple
microservices
Developer’s
Laptop
Developer’s
Laptop
Virtual
Machine
Containers
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q36. Write a Dockerfile to create an Image to install MongoDB
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q36. Write a Dockerfile to create an Image to install MongoDB
FROM ubuntu #Set the base Image to Ubuntu
MAINTAINER Example McAuthor #File author / mantainer
RUN apt-get update #Update the repository sources list
#Add the package verification key
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
#Add MongoDB to the repository sources list
RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
#Update the repository sources list once more
RUN apt-get update
#Install MongoDB package
RUN apt-get install -y mongodb-10gen
#Create the default data directory
RUN mkdir -p /data/db
#Expose the default port
EXPOSE 27017
#Default port to execute the entrypoint (MongoDB)
CMD ["--port 27017"]
#Set default container command
ENTRYPOINT usr/bin/mongod
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q37. With an example, explain how Docker is used in SDLC?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q37. With an example, explain how Docker is used in SDLC?
Docker
File Git Repo
Push the code
to Git Repo
Complex Requirements
for a microservice are
written in easy to write
DockerFile
Jenkins
Server
Production
Staging
Testing
• CI server pull it down and build the exact environment that will be used in production to run the test suite
without needing to configure the CI server at all.
• Deploy it out to a staging environment for testers.
• Roll exactly what you had in development, testing, and staging into production
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q38. How Docker provides consistent computing environment throughout the SDLC?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q38. How Docker provides consistent computing environment throughout the SDLC?
Docker
File
Project Code
Docker Image
Docker
Container
Virtual Machine
Docker
Hub
Production
Server
Staging Server
Images
Images
❑ Docker file builds a Docker image and that image contains all the project's code
❑ You can run that image to create as many Docker containers as you want
❑ Then this Image can be uploaded on Docker hub, from Docker hub any one can pull the image and build a container
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q39. What is Docker Compose?
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Containerization And Virtualization Questions
Q39. What is Docker Compose?
Docker Compose makes it easier to configure and run applications made up of multiple containers. For the example:
imagine being able to define three containers—one running a web app, another running postgres, and a third running
redis—all in one YAML file and then running those three connected containers with a single command.
web app
postgres
redis
Docker
Compose
File
You can run these three containers
with a single command
Containers
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Session In A Minute
Generic Devops Questions Source Code Management Questions
Configuration Management Questions Continuous Monitoring Questions
Continuous Integration Questions
Containerization and Virtualization Questions
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Thank You …
Questions/Queries/Feedback

More Related Content

PPTX
DevOps 101 - an Introduction to DevOps
PPTX
Azure DevOps
PPTX
DevOps overview and tech interview tips
PPTX
Introduction to DevOps
PPTX
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
PDF
DevOps
PPSX
DevOps 101 - an Introduction to DevOps
Azure DevOps
DevOps overview and tech interview tips
Introduction to DevOps
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps

What's hot (20)

PPTX
DevOps Interview Questions Part - 1 | Devops Interview Questions And Answers ...
PDF
DevOps - A Gentle Introduction
PPTX
DevOps Introduction
PDF
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...
PPTX
Azure DevOps CI/CD For Beginners
PPTX
Devops online training ppt
PPTX
DevOps introduction
PDF
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
PPTX
Power of Azure Devops
PPTX
Devops and git basics
PPTX
DevOps Interview Questions Part - 2 | Devops Interview Questions And Answers ...
PDF
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
PPTX
Introduction to Docker - 2017
PPTX
Kubernetes presentation
PPTX
PDF
CI/CD (DevOps) 101
PDF
DevOps Lifecycle | Edureka
PPT
CI and CD with Jenkins
PPTX
Container orchestration overview
PDF
Welcome to Azure Devops
DevOps Interview Questions Part - 1 | Devops Interview Questions And Answers ...
DevOps - A Gentle Introduction
DevOps Introduction
What is DevOps | DevOps Introduction | DevOps Training | DevOps Tutorial | Ed...
Azure DevOps CI/CD For Beginners
Devops online training ppt
DevOps introduction
CI CD Pipeline Using Jenkins | Continuous Integration and Deployment | DevOps...
Power of Azure Devops
Devops and git basics
DevOps Interview Questions Part - 2 | Devops Interview Questions And Answers ...
Kubernetes Architecture | Understanding Kubernetes Components | Kubernetes Tu...
Introduction to Docker - 2017
Kubernetes presentation
CI/CD (DevOps) 101
DevOps Lifecycle | Edureka
CI and CD with Jenkins
Container orchestration overview
Welcome to Azure Devops
Ad

Similar to DevOps Interview Questions and Answers 2019 | DevOps Tutorial | Edureka (20)

PDF
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
PDF
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
PDF
Git interview questions | Edureka
PDF
Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
PDF
Introduction to DevOps | Edureka
PDF
DevOps - Interview Question.pdf
PDF
DevOps #EMERSONEDUARDORODRIGUES EMERSON EDUARDO RODRIGUES
PDF
Git Interview Questions PDF By ScholarHat
PDF
Continuous Integration With Jenkins
PDF
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
PDF
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
PDF
CICD_BestPractices.pdf
PDF
DevOps-Ebook
PPTX
Introducing GitSwarm: Pure Git with Globally Scalable DevOps
PDF
CICD_1670665418.pdf
PPTX
Enhance your Agility with DevOps
PDF
How To Become A DevOps Engineer? | DevOps Engineer Roadmap | DevOps Training ...
PDF
DCVCS using GIT
PDF
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
PPTX
Basics of git
What is Git | What is GitHub | Git Tutorial | GitHub Tutorial | Devops Tutori...
Git Tutorial | Git Basics - Branching, Merging, Rebasing | Learn Git | DevOps...
Git interview questions | Edureka
Introduction to DevOps Tools | DevOps Training | DevOps Tutorial for Beginner...
Introduction to DevOps | Edureka
DevOps - Interview Question.pdf
DevOps #EMERSONEDUARDORODRIGUES EMERSON EDUARDO RODRIGUES
Git Interview Questions PDF By ScholarHat
Continuous Integration With Jenkins
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
Git in the Enterprise: How to succeed at DevOps using Git and a monorepo
CICD_BestPractices.pdf
DevOps-Ebook
Introducing GitSwarm: Pure Git with Globally Scalable DevOps
CICD_1670665418.pdf
Enhance your Agility with DevOps
How To Become A DevOps Engineer? | DevOps Engineer Roadmap | DevOps Training ...
DCVCS using GIT
What is Jenkins | Jenkins Tutorial for Beginners | Edureka
Basics of git
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
Top 5 PMP Certifications | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
RPA in 2020 | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Python Programming Tutorial | Edureka
Top 5 PMP Certifications | Edureka
Top Maven Interview Questions in 2020 | Edureka
Linux Mint Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
Importance of Digital Marketing | Edureka
RPA in 2020 | Edureka
Email Notifications in Jenkins | Edureka
EA Algorithm in Machine Learning | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Blue Prism Top Interview Questions | Edureka
Big Data on AWS Tutorial | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
ITIL® Tutorial for Beginners | ITIL® Foundation Training | Edureka

Recently uploaded (20)

PPTX
MYSQL Presentation for SQL database connectivity
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Electronic commerce courselecture one. Pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
KodekX | Application Modernization Development
PDF
Modernizing your data center with Dell and AMD
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
A Presentation on Artificial Intelligence
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Unlocking AI with Model Context Protocol (MCP)
MYSQL Presentation for SQL database connectivity
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Understanding_Digital_Forensics_Presentation.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Diabetes mellitus diagnosis method based random forest with bat algorithm
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Electronic commerce courselecture one. Pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
KodekX | Application Modernization Development
Modernizing your data center with Dell and AMD
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
A Presentation on Artificial Intelligence
Spectral efficient network and resource selection model in 5G networks
Reach Out and Touch Someone: Haptics and Empathic Computing
Unlocking AI with Model Context Protocol (MCP)

DevOps Interview Questions and Answers 2019 | DevOps Tutorial | Edureka

  • 1. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING DevOps Interview Preparation 2019
  • 3. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING DevOps Market According to the “Global DevOps Platform Market 2016-2020”, created by the research firm Research and Markets, the DevOps market should see a steady growth rate of around 20 percent (compound annual growth rate of 19.42%) through the end of the decade.
  • 4. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Average Salary of a DevOps Practitioner $50,000 - $75000$75,000 - $99,000 $100,000 - $125,000 $25,000 $75,000 - $99,999 $25,000 Team Size Experience $25,000 Source: https://puppet.com/resources/whitepaper/2016-state-of-devops-report
  • 5. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Enterprise Adoption Of DevOps Source: http://rightscale7.rssing.com/chan-14813591/all_p7.html
  • 6. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING DevOps Interview Questions
  • 7. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Classification Of DevOps Interview Questions Generic DevOps Questions Source Code Management Questions Continuous Integration Questions Configuration Management Questions Continuous Monitoring Questions Containerization And Virtualization Questions Jenkins
  • 8. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions
  • 9. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions Q1. What is DevOps?
  • 10. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions Q1. What is DevOps? Source Code Management Continuous Integration Continuous Testing Configuration Management Continuous Monitoring
  • 11. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions Q2. How is DevOps different from Agile?
  • 12. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions Q2. How is DevOps different from Agile? DevOps Agile Development Start Development End Release Production Support Development Operations Testing
  • 13. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions Q3. What is the need for DevOps?
  • 14. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions Q3. What is the need for DevOps? Increase deployment frequency Lower failure rate of new releases Shortened lead time between fixes Faster mean time to recovery in the event of new release failure
  • 15. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions Q4. Name some top DevOps tools and how these tools work together?
  • 16. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Generic DevOps Questions Q4. Name some top DevOps tools and how these tools work together? Production Production Production Pulls the code from Git repository Builds/Compile the code Test the build software Provisions the production and testing servers Docker containers provide the consistent computing environment throughout the SDLC
  • 17. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions
  • 18. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q5. What functions does Git performs in DevOps?
  • 19. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q5. What functions does Git performs in DevOps? Every time a commit is made in the Git repository, Continuous Integration server pulls it and compiles it and also deploys it on the test server for testing
  • 20. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q6. Explain Git’s distributed architecture?
  • 21. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q6. Explain Git’s distributed architecture? Collaborator Remote Repository Local Repo Local Repo Local Repo Local Repo Local Repo Collaborator Collaborator CollaboratorCollaborator Local Repo Collaborator Commit changes to source code Commit changes to source code Commit changes to source code Commit changes to source code Commit changes to source code Commit changes to source code
  • 22. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q7. In Git how do you revert a commit that has already been pushed and made public?
  • 23. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q7. In Git how do you revert a commit that has already been pushed and made public? Remove or fix the bad file in a new commit and push it to the remote repository. This is the most natural way to fix an error. Once you have made necessary changes to the file, commit it to the remote repository for that I will use git commit -m “commit message” Create a new commit that undoes all changes that were made in the bad commit.to do this you can use a command git revert <name of bad commit>
  • 24. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q8. How do you find a list of files that has changed in a particular commit?
  • 25. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q8. How do you find a list of files that has changed in a particular commit? To get a list files that has changed in a particular commit use the below command: git diff-tree -r {hash} Given the commit hash, this will list all the files that were changed or added in that commit. The -r flag makes the command list individual files, rather than collapsing them into root directory names only. The output will also include some extra information, which can be easily suppressed by including two flags: git diff-tree –no-commit-id –name-only -r {hash} Here –no-commit-id will suppress the commit hashes from appearing in the output, and –name-only will only print the file names, instead of their paths.
  • 26. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q9. How do you squash last N commits into a single commit?
  • 27. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Source Code Management Questions Q9. How do you squash last N commits into a single commit? There are two options to squash last N commits into a single commit: ❑ If you want to write the new commit message from scratch use the following command git reset –soft HEAD~N && git commit ❑ If you want to start editing the new commit message with a concatenation of the existing commit messages then you need to extract those messages and pass them to Git commit for that I will use git reset –soft HEAD~N && git commit –edit -m”$(git log –format=%B –reverse .HEAD@{N})”
  • 28. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions
  • 29. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q10. What is meant by Continuous Integration?
  • 30. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q10. What is meant by Continuous Integration? Commit Changes To The Source Code Build Test Deploy Continuous Integration Server Feedback
  • 31. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q11. Mention some of the commonly used Jenkins Plugins
  • 32. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Plugin Feature Git Plugin Git plugins are often used in projects to know whether the codes written are stable or not SSH Plugin These plugin is used to run shell commands through SSH on a remote machine as they are derived from SCP plugin Build Pipeline Plugin This plugin provides a Build Pipeline View of upstream and downstream connected jobs that typically form a build pipeline Email-ext Plugin This plugin allows you to configure every aspect of email notifications. You can customize when an email is sent, who should receive it, and what the email says HTML Publisher Plugin This plugin publishes HTML reports Multi-slave config Plugin This plugin allows administrators to configure, add and delete several dumb slaves at the same time Parameterized Trigger Plugin This plugin lets you trigger new builds when your build has completed, with various ways of specifying parameters for the new build Q11. Mention some of the commonly used Jenkins Plugins
  • 33. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q12. Explain Jenkins distributed architecture and what is the need for this architecture?
  • 34. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q12. Explain Jenkins distributed architecture and what is the need for this architecture? The single Jenkins server was not enough to meet certain requirements like: ❑ Sometimes you might need several different environments to test your builds. This cannot be done by a single Jenkins server ❑ If larger and heavier projects get built on a regular basis then a single Jenkins server cannot simply handle the entire load
  • 35. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q13. How will you secure Jenkins?
  • 36. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q13. How will you secure Jenkins? ❑ Ensure global security is on. ❑ Ensure that Jenkins is integrated with my company’s user directory with appropriate plugin. ❑ Ensure that matrix/Project matrix is enabled to fine tune access. ❑ Automate the process of setting rights/privileges in Jenkins with custom version controlled script. ❑ Limit physical access to Jenkins data/folders. ❑ Periodically run security audits on same.
  • 37. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q14. Explain how you can create a backup and copy files in Jenkins?
  • 38. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Integration Questions Q14. Explain how you can create a backup and copy files in Jenkins? This can be done by copying the jobs directory from the old server to the new one. There are multiple ways to do that, you can: ❑ Move a job from one installation of Jenkins to another by simply copying the corresponding job directory. ❑ Make a copy of an existing job by making a clone of a job directory by a different name. ❑ Rename an existing job by renaming a directory. Note that if you change a job name you will need to change any other job that tries to call the renamed job.
  • 39. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions
  • 40. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q15. Explain various Configuration Management components?
  • 41. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q15. Explain various Configuration Management components?
  • 42. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q16. What is the difference between Asset management and Configuration Management?
  • 43. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q16. What is the difference between Asset management and Configuration Management?
  • 44. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q17. What do you understand by “Infrastructure as code”?
  • 45. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q17. What do you understand by “Infrastructure as code”? DEV TEST PROD IaC is automation of IT operations (build, deploy, manage) by provisioning of code , rather than manual process Provisioning of Dev, Test and Prod environment by writing code in one centralized location Code for the infrastructure
  • 46. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q18. What is the difference between Push and Pull Configuration Management?
  • 47. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q18. What is the difference between Push and Pull Configuration Management?
  • 48. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q19. How Puppet works?
  • 49. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q19. How Puppet works?
  • 50. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q20. What are Modules and Manifests in Puppet?
  • 51. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q20. What are Modules and Manifests in Puppet? Puppet Module A Puppet Module is a collection of Manifests and data (such as facts, files, and templates), and they have a specific directory structure. Modules are useful for organizing your Puppet code, because they allow you to split your code into multiple Manifests. Modules are self- contained bundles of code and data. You can find pre-defined modules at forge.puppet.com/modules Puppet Manifest Every Slave has got its configuration details in Puppet Master, written in the native Puppet language. These details are written in the language which Puppet can understand and are termed as Manifests. They are composed of Puppet code and their filenames use the .pp extension. These are basically Puppet programs.
  • 52. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q21. Explain Chef Architecture
  • 53. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q21. Explain Chef Architecture ❑ Chef Workstation: All the configurations are first tested in the Workstation and then pushed on the Chef Server ❑ Chef Server: It contains all the Configurations which are pushed on the Chef Nodes ❑ Chef Node: Nodes can be a cloud based virtual server or a physical server in your own data center, that is managed using central Chef Server
  • 54. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q22. Write a recipe to install httpd package and copy an index.html file to the default document root to confirm the installation
  • 55. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q22. Write a recipe to install httpd package and copy an index.html file to the default document root to confirm the installation A Recipe is a collection of resources that describes a particular configuration or policy. It describes everything that is required to configure part of a system. The user writes Recipes that describe how Chef manages applications and utilities (such as Apache HTTP Server, MySQL, or Hadoop) and how they are to be configured.
  • 56. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q23. What happens when you don’t specify a Resource’s action in Chef?
  • 57. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q23. What happens when you don’t specify a Resource’s action in Chef? When you don’t specify a resource’s action, Chef applies the default action. For ex: the below resource: is same as the below resource: because: create is the file Resource’s default action.
  • 58. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q24. Are these two Chef recipes the same?
  • 59. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q24. Are these two Chef recipes the same? No, they are not. Because Chef applies resources in the order they appear. So the first Recipe ensures that the httpd package is installed and then configures the service. The second Recipe configures the service and then ensures the package is installed.
  • 60. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q25. Is Ansible a Push based or a pull based CM tool?
  • 61. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q25. Is Ansible a Push based or a pull based CM tool? Server send specifications poll for changes 1 2 Version Control System Orchestrate (SSH) 3 Push Based
  • 62. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Q26. How does Ansible architecture looks like?
  • 63. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Configuration Management Questions Modules APIs Plugins Inventory Hosts CMDB ANSIBLE AUTOMATION ENGINE PLAYBOOK Q26. How does Ansible architecture looks like?
  • 64. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions
  • 65. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q27. Why is Continuous Monitoring necessary? Continuous Monitoring allows timely identification of problems or weaknesses in the software and quick corrective action that helps reduce expenses of an organization. Continuous monitoring provides solution that addresses three operational disciplines known as: Continuous Audit Continuous Controls Monitoring Continuous Transaction Inspection
  • 66. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q27. Why is Continuous Monitoring necessary?
  • 67. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q28. How does Nagios work?
  • 68. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q28. How does Nagios work? ❑ Nagios runs on a server, usually as a daemon or service. Nagios periodically runs plugins residing on the same server, they contact hosts or servers on your network or on the internet. One can view the status information using the web interface. You can also receive email or SMS notifications if something happens. ❑ The Nagios daemon behaves like a scheduler that runs certain scripts at certain moments. It stores the results of those scripts and will run other scripts if these results change.
  • 69. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q29. What is NRPE (Nagios Remote Plugin Executor) in Nagios?
  • 70. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q29. What is NRPE (Nagios Remote Plugin Executor) in Nagios? NRPE addon is designed to allow you to execute Nagios plugins on remote Linux/Unix machines. The main reason for doing this is to allow Nagios to monitor “local” resources (like CPU load, memory usage, etc.) on remote machines.
  • 71. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q30. When Does Nagios Check for external commands?
  • 72. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q30. When Does Nagios Check for external commands? Nagios check for external commands under the following conditions: ❑ At regular intervals specified by the command_check_interval option in the main configuration file or, ❑ Immediately after event handlers are executed. This is in addition to the regular cycle of external command checks and is done to provide immediate action if an event handler submits commands to Nagios.
  • 73. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q31. What is the difference between Active and Passive check in Nagios?
  • 74. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q31. What is the difference between Active and Passive check in Nagios? The major difference between Active and Passive checks is that Active checks are initiated and performed by Nagios, while passive checks are performed by external applications. Passive checks are useful for monitoring services that are: ❑ Asynchronous in nature and cannot be monitored effectively by polling their status on a regularly scheduled basis. ❑ Located behind a firewall and cannot be checked actively from the monitoring host. The main features of Actives checks are as follows: ❑ Active checks are initiated by the Nagios process. ❑ Active checks are run on a regularly scheduled basis.
  • 75. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q32. Explain how Flap Detection works in Nagios?
  • 76. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Continuous Monitoring Questions Q32. Explain how Flap Detection works in Nagios? Storing the results of the last 21 checks of the host or service analyzing the historical check results and determine where state changes/transitions occur. Using the state transitions to determine a percent state change value (a measure of change) for the host or service. Comparing the percent state change value against low and high flapping thresholds A host or service is determined to have started flapping when its percent state change first exceeds a high flapping threshold. A host or service is determined to have stopped flapping when its percent state goes below a low flapping threshold. Flapping occurs when a service or host changes state too frequently, this causes lot of problem and recovery notifications. Whenever Nagios checks the status of a host or service, it will check to see if it has started or stopped flapping. Nagios follows the below procedure to do that:
  • 77. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions
  • 78. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q33. What are Containers?
  • 79. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q33. What are Containers? A container consists of an entire runtime environment: an application, plus all its dependencies, libraries and other binaries, and configuration files needed to run it, bundled into one package. Containerizing the application platform and its dependencies removes the differences in OS distributions and underlying infrastructure.
  • 80. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q35. Imagine a scenario when a large application is broken into smaller composable pieces and each of those pieces have their own set of dependencies, let us call these pieces as Microservices. In order to run each of these Microservices what will you use 1. Containers 2. Virtual Machines
  • 81. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q35. Imagine a scenario when a large application is broken into smaller composable pieces and each of those pieces have their own set of dependencies, let us call these pieces as Microservices. In order to run each of these Microservices what will you use 1. Containers 2. Virtual Machines Virtual Machines for starting multiple microservices Developer’s Laptop Developer’s Laptop Virtual Machine Containers
  • 82. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q36. Write a Dockerfile to create an Image to install MongoDB
  • 83. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q36. Write a Dockerfile to create an Image to install MongoDB FROM ubuntu #Set the base Image to Ubuntu MAINTAINER Example McAuthor #File author / mantainer RUN apt-get update #Update the repository sources list #Add the package verification key RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 #Add MongoDB to the repository sources list RUN echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list #Update the repository sources list once more RUN apt-get update #Install MongoDB package RUN apt-get install -y mongodb-10gen #Create the default data directory RUN mkdir -p /data/db #Expose the default port EXPOSE 27017 #Default port to execute the entrypoint (MongoDB) CMD ["--port 27017"] #Set default container command ENTRYPOINT usr/bin/mongod
  • 84. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q37. With an example, explain how Docker is used in SDLC?
  • 85. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q37. With an example, explain how Docker is used in SDLC? Docker File Git Repo Push the code to Git Repo Complex Requirements for a microservice are written in easy to write DockerFile Jenkins Server Production Staging Testing • CI server pull it down and build the exact environment that will be used in production to run the test suite without needing to configure the CI server at all. • Deploy it out to a staging environment for testers. • Roll exactly what you had in development, testing, and staging into production
  • 86. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q38. How Docker provides consistent computing environment throughout the SDLC?
  • 87. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q38. How Docker provides consistent computing environment throughout the SDLC? Docker File Project Code Docker Image Docker Container Virtual Machine Docker Hub Production Server Staging Server Images Images ❑ Docker file builds a Docker image and that image contains all the project's code ❑ You can run that image to create as many Docker containers as you want ❑ Then this Image can be uploaded on Docker hub, from Docker hub any one can pull the image and build a container
  • 88. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q39. What is Docker Compose?
  • 89. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Containerization And Virtualization Questions Q39. What is Docker Compose? Docker Compose makes it easier to configure and run applications made up of multiple containers. For the example: imagine being able to define three containers—one running a web app, another running postgres, and a third running redis—all in one YAML file and then running those three connected containers with a single command. web app postgres redis Docker Compose File You can run these three containers with a single command Containers
  • 90. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Session In A Minute Generic Devops Questions Source Code Management Questions Configuration Management Questions Continuous Monitoring Questions Continuous Integration Questions Containerization and Virtualization Questions
  • 91. www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING Thank You … Questions/Queries/Feedback