DevOps Interview Questions and Answers
1. Q: What is CI/CD?
A: CI/CD stands for Continuous Integration and Continuous Deployment/Delivery. It is a method to
frequently deliver apps to customers by introducing automation into the stages of app development.
2. Q: What are the benefits of DevOps?
A: Faster release rates, improved collaboration, increased deployment success rates, stable
operating environments, and efficient problem-solving.
3. Q: What are some key DevOps tools?
A: Git, Jenkins, Docker, Kubernetes, Ansible, Puppet, Terraform, Prometheus, and Grafana.
4. Q: What is a Docker container?
A: A Docker container is a lightweight, standalone, executable package that includes everything
needed to run a piece of software including the code, runtime, libraries, and settings.
5. Q: What is a Dockerfile?
A: A Dockerfile is a script composed of instructions on how to build a Docker image.
6. Q: How do you create a Docker image?
A: By using the 'docker build' command along with a Dockerfile.
7. Q: What is the difference between Docker image and Docker container?
A: An image is a read-only template used to create containers. A container is a running instance of
an image.
8. Q: How do you list running Docker containers?
A: Using the command 'docker ps'.
9. Q: What is a Pod in Kubernetes?
A: A Pod is the smallest deployable unit in Kubernetes, which can contain one or more containers.
10. Q: What is a ReplicaSet?
A: ReplicaSet is a Kubernetes controller that ensures a specified number of pod replicas are running
at any given time.
11. Q: What is a Deployment in Kubernetes?
A: Deployment is a Kubernetes object that manages a ReplicaSet to provide declarative updates to
Pods.
12. Q: How do you expose a Kubernetes deployment?
A: Using a Service, which can be ClusterIP, NodePort, LoadBalancer, or ExternalName.
13. Q: What is kubectl?
A: kubectl is the command-line tool for interacting with the Kubernetes API server.
14. Q: What is EC2 in AWS?
A: Amazon EC2 (Elastic Compute Cloud) provides resizable compute capacity in the cloud to run
virtual machines.
15. Q: What is S3?
A: Amazon S3 (Simple Storage Service) is an object storage service that offers scalability, data
availability, security, and performance.
16. Q: What is IAM in AWS?
A: Identity and Access Management (IAM) allows you to manage access to AWS services and
resources securely.
17. Q: What is VPC in AWS?
A: A Virtual Private Cloud (VPC) lets you provision a logically isolated section of the AWS cloud.
18. Q: What is Azure DevOps?
A: Azure DevOps is a suite of development tools provided by Microsoft to support the entire
software development lifecycle.
19. Q: What is Azure Resource Manager?
A: Azure Resource Manager is the deployment and management service for Azure.
20. Q: What is Azure App Service?
A: Azure App Service is a platform for building and hosting web apps in the programming language
of your choice.
21. Q: What is the Azure CLI?
A: The Azure Command-Line Interface (CLI) is a set of commands used to create and manage
Azure resources.
22. Q: What is Google Compute Engine?
A: Google Compute Engine delivers virtual machines running in Googles data centers.
23. Q: What is Google Cloud Storage?
A: It is a RESTful online file storage web service for storing and accessing data on Google's
infrastructure.
24. Q: What is GKE?
A: Google Kubernetes Engine is a managed, production-ready environment for deploying
containerized applications.
25. Q: What is Cloud Functions in GCP?
A: Cloud Functions is a lightweight, serverless compute service for running single-purpose functions.