Top 250 DevOps Interview Questions and Answers

Updated 3 Jul 2025

Asked in Siemens

6d ago
Q. How many components are there in Docker?
Ans.

Docker has 3 main components: Docker Engine, Docker Images, and Docker Containers.

  • Docker Engine is the core component responsible for running and managing Docker containers.

  • Docker Images are read-only templates used to create Docker containers.

  • Docker...read more

2d ago

Q. How do you configure Jenkins to point to a branch other than the master branch?

Ans.

To point to any other branch in Jenkins, use the 'Branch specifier' field in the 'Source Code Management' section.

  • In the Jenkins job configuration, go to the 'Source Code Management' section

  • Select the appropriate SCM tool (e.g. Git, SVN)

  • In the 'Branc...read more

Asked in Capgemini

3d ago

Q. Explain dynamic inventory in Ansible.

Ans.

Dynamic inventory is a feature in Ansible that allows for automatic inventory updates based on external data sources.

  • Dynamic inventory can be configured to pull inventory information from sources such as cloud providers, configuration management data...read more

Asked in TCS

6d ago

Q. How can we monitor the child pipeline in the master pipeline?

Ans.

You can monitor the child pipeline in the master pipeline by using Azure Monitor or Azure Data Factory monitoring tools.

  • Use Azure Monitor to track the performance and health of the child pipeline within the master pipeline.

  • Leverage Azure Data Factory...read more

Are these interview questions helpful?

Asked in TCS

2d ago

Q. What is the difference between providers and provisioners in Terraform?

Ans.

Providers are plugins that interact with APIs, while provisioners execute scripts on resources.

  • Providers are responsible for creating, updating, and deleting resources in a given infrastructure.

  • Provisioners are used to execute scripts on resources af...read more

Asked in CtrlS

3d ago

Q. How do you deploy a web application into Kubernetes?

Ans.

Deploy webapp into k8s by creating a deployment YAML file and applying it using kubectl command.

  • Create a Docker image of the webapp

  • Create a deployment YAML file with necessary specifications like image, replicas, ports, etc.

  • Apply the deployment YAML ...read more

Share interview questions and help millions of jobseekers 🌟
man with laptop

Asked in Cloud4C

3d ago

Q. What are the tools used in DevOps?

Ans.

Tools used in DevOps include Jenkins, Git, Docker, Ansible, Puppet, Chef, Kubernetes, and more.

  • Continuous Integration (CI) tools like Jenkins and Git

  • Containerization tools like Docker and Kubernetes

  • Configuration management tools like Ansible, Puppet,...read more

Asked in Coforge

2d ago

Q. What is Jenkins in CI/CD?

Ans.

Jenkins is an open-source automation server that helps to automate the software development process.

  • Jenkins is used for continuous integration and continuous delivery/deployment (CI/CD) pipelines.

  • It can be used to build, test, and deploy software aut...read more

2d ago

Q. How do you use a CI/CD pipeline in operations?

Ans.

CI/CD pipeline is used in operations to automate the deployment process and ensure consistency and reliability.

  • CI/CD pipeline is used to automate the build, test, and deployment process of applications.

  • It ensures consistency and reliability by automa...read more

Asked in Cybage

2d ago
Q. What are the most commonly used instructions in a Dockerfile?
Ans.

The most commonly used instructions in a Dockerfile include FROM, RUN, COPY, and CMD.

  • FROM: Specifies the base image for the container

  • RUN: Executes commands in the container

  • COPY: Copies files and directories from the host to the container

  • CMD: Specifie...read more

DevOps Jobs

Muthoot Fincorp Ltd logo
Associate Principal Engineer - Devops 4-8 years
Muthoot Fincorp Ltd
4.5
Bangalore / Bengaluru
Jio logo
Openstack SME 5-10 years
Jio
4.0
₹ 2 L/yr - ₹ 21 L/yr
(AmbitionBox estimate)
Bhubaneswar
Red Hat India Pvt Ltd logo
Technical Account Manager 3-7 years
Red Hat India Pvt Ltd
4.3
New Delhi

Asked in Infosys

5d ago

Q. What is the difference between Jenkins and Azure DevOps?

Ans.

Jenkins is a CI/CD tool while Azure DevOps is a complete DevOps solution.

  • Jenkins is open-source and can be hosted on-premises or in the cloud.

  • Azure DevOps is a cloud-based solution that offers a range of DevOps services.

  • Jenkins has a large number of ...read more

Asked in ITC

4d ago

Q. What are the responsibilities of a DevOps engineer?

Ans.

DevOps engineers are responsible for bridging the gap between development and operations teams.

  • Automating deployment processes

  • Monitoring system performance

  • Collaborating with development and operations teams

  • Ensuring system security and reliability

  • Impl...read more

Q. How do you troubleshoot a Docker container that is failing?

Ans.

To troubleshoot a dying docker container, we can use logs, inspect the container, and check resource usage.

  • Check container logs using 'docker logs ' command

  • Inspect the container using 'docker inspect ' command to check its status and configuration

  • Che...read more

5d ago

Q. Write a YAML file for a deployment.

Ans.

Write a yaml file for deployment kind

  • Use 'kind: Deployment' to specify the type of deployment

  • Include metadata like name and labels

  • Define spec with containers, image, ports, etc.

Asked in Siemens

3d ago
Q. How does AWS contribute to DevOps?
Ans.

AWS provides a wide range of services and tools that support the principles and practices of DevOps.

  • AWS offers infrastructure as code tools like CloudFormation and Terraform for automating the provisioning of resources.

  • AWS provides a variety of monit...read more

4d ago

Q. How will you troubleshoot if there is an issue in containers?

Ans.

I will use various tools and techniques to identify and resolve container issues.

  • Check container logs for any error messages

  • Use container management tools like Docker Compose to inspect containers

  • Check resource utilization of containers and host mach...read more

Asked in Accenture

5d ago

Q. Explain Terraform modules and provide an example.

Ans.

Terraform modules are reusable components that allow you to encapsulate and organize your infrastructure code.

  • Modules help in creating reusable infrastructure components

  • They allow for better organization and encapsulation of code

  • Modules can be shared...read more

Asked in Aaban Solutions and 2 others

3d ago

Q. What are CI/CD pipelines?

Ans.

CI/CD pipelines are automated processes that build, test, and deploy code changes to production.

  • CI/CD stands for Continuous Integration/Continuous Deployment

  • CI involves automatically building and testing code changes as they are made

  • CD involves autom...read more

Asked in Infosys

5d ago

Q. What happens when SonarQube fails in Jenkins?

Ans.

When SonarQube fails in Jenkins, the code quality analysis will not be performed and potential issues in the code will not be identified.

  • SonarQube plugin in Jenkins will report a failure in the build job

  • Developers will not receive feedback on code qu...read more

5d ago

Q. Why is Packer used?

Ans.

Packer is used for creating identical machine images for multiple platforms from a single source configuration.

  • Packer helps in automating the process of creating machine images for different platforms like AWS, Azure, VMware, etc.

  • It allows for consis...read more

Asked in TCS

6d ago

Q. What should be defined in the Ansible inventory file?

Ans.

The ansible inventory file defines the hosts and groups that ansible can manage.

  • Hosts and groups are defined using INI or YAML syntax

  • Hosts can have variables defined for them

  • Groups can have child groups and variables defined for them

  • Inventory files c...read more

Asked in SAP

6d ago

Q. How do you approach creating a Jenkins pipeline?

Ans.

To create a Jenkins pipeline, I follow these steps:

  • Define the stages and steps of the pipeline

  • Create a Jenkinsfile with the pipeline code

  • Configure Jenkins to use the Jenkinsfile

  • Test the pipeline and make necessary adjustments

  • Integrate with version co...read more

Asked in IBM

4d ago

Q. What is the importance of having configuration management in DevOps?

Ans.

Configuration management is crucial in DevOps for consistency, scalability, and automation.

  • Ensures consistency across environments

  • Facilitates scalability by automating infrastructure changes

  • Enables automation of deployment and testing processes

  • Helps ...read more

Q. Explain the DevOps architecture.

Ans.

DevOps architecture is a software development approach that combines development and operations teams to improve collaboration and efficiency.

  • DevOps emphasizes automation, continuous integration, and continuous delivery.

  • It involves using tools like J...read more

6d ago

Q. What is the use of a Jenkins pipeline?

Ans.

Jenkins pipeline is a way to define and automate the steps in your software delivery process.

  • Allows you to define your build process as code

  • Enables you to automate the entire software delivery process

  • Supports both declarative and scripted syntax

  • Provi...read more

Asked in TCS

1d ago

Q. How do you use Ansible variables?

Ans.

Ansible variables can be used to store and retrieve values in playbooks and templates.

  • Variables can be defined in inventory files, playbooks, or roles

  • Variables can be accessed using the {{ variable_name }} syntax

  • Variables can be set using the set_fac...read more

Asked in GlobalLogic

6d ago
Q. What are Docker Namespaces?
Ans.

Docker Namespaces are a feature in Docker that isolates containers from each other and the host system.

  • Namespaces provide a way to isolate processes, network, and filesystem for containers.

  • Examples of namespaces include PID (process IDs), NET (networ...read more

Q. What is the difference between Helm 2 and Helm 3?

Ans.

Helm2 is Tiller-based, Helm3 is Tiller-less. Helm3 has improved security, performance, and reliability.

  • Helm2 relies on Tiller for managing releases, Helm3 removes Tiller completely.

  • Helm3 has improved security by removing Tiller, reducing attack surfa...read more

1d ago

Q. What is a CI pipeline and where can it be used?

Ans.

CI pipe is a tool used in continuous integration to automate the build, test, and deployment process.

  • CI pipe stands for Continuous Integration Pipeline

  • It is used to automate the software development process

  • It helps in building, testing, and deploying...read more

Asked in Frontdoor

5d ago

Q. Explain the structure and purpose of a Kubernetes YAML file.

Ans.

Explanation of Kubernetes YAML file

  • Kubernetes YAML files are used to define and deploy applications on a Kubernetes cluster

  • They contain information about the application's containers, volumes, services, and other resources

  • YAML files can be used to cr...read more

1
2
3
4
5
6
7
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.8
 • 8.6k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
HCLTech Logo
3.5
 • 4.1k Interviews
Tech Mahindra Logo
3.5
 • 4.1k Interviews
LTIMindtree Logo
3.7
 • 3k Interviews
GlobalLogic Logo
3.6
 • 627 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
DevOps Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 Lakh+

Reviews

10L+

Interviews

4 Crore+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits