Devops Consultant

20+ Devops Consultant Interview Questions and Answers

Updated 12 Jul 2025
search-icon

Asked in Capgemini

3d ago

Q. AWS different types of load balancer, difference, layers they work on, Auto-Scaling, S3 cloud storage types

Ans.

AWS offers three types of load balancers: Application, Network, and Classic. Auto-Scaling helps to automatically adjust resources based on demand. S3 offers four storage classes: Standard, Intelligent-Tiering, Standard-Infrequent Access, and Glacier.

  • AWS offers three types of load balancers: Application, Network, and Classic

  • Application Load Balancer operates at Layer 7 of the OSI model and is best suited for HTTP/HTTPS traffic

  • Network Load Balancer operates at Layer 4 of the OS...read more

Asked in Capgemini

5d ago

Q. DevOps CI/CD flow, difference between git stash and git commit, git merge and git rebase, git pull and git fetch

Ans.

Explanation of DevOps CI/CD flow and Git commands

  • DevOps CI/CD flow involves continuous integration, testing, and deployment of code changes

  • Git stash temporarily saves changes without committing them

  • Git commit permanently saves changes to the repository

  • Git merge combines changes from different branches

  • Git rebase applies changes from one branch onto another

  • Git pull fetches changes from a remote repository and merges them into the local branch

  • Git fetch only fetches changes from ...read more

Devops Consultant Interview Questions and Answers for Freshers

illustration image

Asked in Infosys

6d ago

Q. How will you connect to your instances?

Ans.

To connect to instances, I will use SSH (Secure Shell) protocol.

  • SSH (Secure Shell) protocol is a secure way to connect to instances remotely.

  • It provides encrypted communication between the client and the server.

  • To connect, I will use SSH client software like OpenSSH or PuTTY.

  • I will need the public IP address or hostname of the instance.

  • I will authenticate using SSH keys or username/password credentials.

4d ago

Q. Explain the Kubernetes architecture, the functionality of each component, and which network is used in the Kubernetes cluster to establish communication between pods.

Ans.

Kubernetes architecture includes master nodes, worker nodes, etcd, kubelet, kube-proxy, and more. Communication between pods is established using a network overlay.

  • Kubernetes architecture consists of master nodes, which manage the cluster, and worker nodes, where applications run.

  • etcd is a distributed key-value store used for storing cluster data.

  • kubelet is an agent that runs on each node and ensures containers are running.

  • kube-proxy is a network proxy that maintains network ...read more

Are these interview questions helpful?
6d ago

Q. What is VPC and vpc peering, how we configure azure devops with AWS Instances

Ans.

VPC stands for Virtual Private Cloud, a virtual network dedicated to your AWS account. VPC peering allows connecting VPCs to communicate securely.

  • Create a VPC in AWS and configure subnets, route tables, and security groups

  • Establish VPC peering connection between AWS VPC and Azure VNet

  • Ensure proper routing and security settings for communication between Azure DevOps and AWS instances

Asked in Capgemini

3d ago

Q. Kubernetes pods, difference between deployment and daemonset

Ans.

Kubernetes pods - difference between deployment and daemonset

  • Deployment manages a set of identical pods, ensuring availability and scalability

  • DaemonSet ensures that all nodes run a copy of a pod, useful for system-level services

  • Deployment is suitable for stateless applications, while DaemonSet is suitable for stateful applications

  • Deployment can be used for rolling updates, while DaemonSet is not suitable for rolling updates

Devops Consultant Jobs

Oracle India Pvt. Ltd. logo
AI Devops Consultant 3-5 years
Oracle India Pvt. Ltd.
3.7
Kolkata
Deloitte logo
Salesforce DevOps Consultant 3-6 years
Deloitte
3.7
₹ 4 L/yr - ₹ 25 L/yr
(AmbitionBox estimate)
Hyderabad / Secunderabad
Oracle India Pvt. Ltd. logo
Senior Principal Devops Consultant 6-8 years
Oracle India Pvt. Ltd.
3.7
Bangalore / Bengaluru

Q. Docker: run vs entry point,copy vs add, process vs demons

Ans.

Docker commands and concepts comparison

  • Run vs entry point: 'docker run' is used to create a new container while 'entrypoint' specifies the command to run when the container starts.

  • Copy vs add: 'COPY' is used to copy files from the host to the container while 'ADD' can also fetch files from URLs and extract tarballs.

  • Process vs demons: Processes are foreground tasks that run in the container while daemons are background tasks that run continuously.

5d ago

Q. Explain Devops CICD experience AWS, GCP, Azure cloud or on premise cloud experience. Jenkins, ansible, pythons, git, docker, kubernatives, confluence, jira, bitbucket, GitHub

Ans.

DevOps CICD experience with cloud and tool proficiency

  • Experience implementing Continuous Integration/Continuous Deployment pipelines using tools like Jenkins, Ansible, Git, Docker, Kubernetes

  • Proficiency in cloud platforms such as AWS, GCP, Azure, or on-premise cloud environments

  • Familiarity with collaboration tools like Confluence, Jira, Bitbucket, GitHub

  • Ability to automate tasks using Python scripting

  • Hands-on experience with containerization technologies like Docker

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q. How should you ensure high availability for your application?

Ans.

To ensure high availability of an application, implement redundancy, load balancing, monitoring, and disaster recovery.

  • Implement redundancy by having multiple instances of the application running in different servers or data centers.

  • Use load balancing to distribute incoming traffic across multiple servers to prevent overload on any single server.

  • Set up monitoring tools to constantly check the health and performance of the application and servers.

  • Implement disaster recovery pl...read more

Asked in Capgemini

4d ago

Q. How do you handle Terraform tfstate and Terraform recovery of corrupted/deleted state files?

Ans.

Terraform's tfstate file tracks infrastructure; recovery methods exist for corrupted or deleted states.

  • Use remote state storage (e.g., S3, Azure Blob) to enable versioning and recovery.

  • If the state file is corrupted, check for backups or use 'terraform state pull' to retrieve the latest state.

  • In case of deletion, restore from the versioned backup in remote storage or use 'terraform import' to recreate resources.

  • Always implement a state locking mechanism to prevent concurrent ...read more

6d ago

Q. write a docker file for python code and explain each command, the difference between ADD & COPY

Ans.

A Dockerfile for Python code with explanations of each command and the difference between ADD & COPY.

  • Use a base Python image as the starting point, such as 'python:3.8'.

  • Use WORKDIR to set the working directory inside the container.

  • Use COPY to add files from the host machine to the container, while ADD can also fetch files from URLs and extract tarballs.

  • Use RUN to execute commands during the build process, such as installing dependencies with pip.

  • Use CMD to specify the command...read more

3d ago

Q. Write a shell script to sort all files in descending order.

Ans.

Shell script to sort files in descending order

  • Use the 'ls' command to list all files in a directory

  • Pipe the output of 'ls' to the 'sort' command with the '-r' flag for reverse order

  • Example: ls | sort -r

Q. Explain how to build and deploy a Docker image in AKS using ACR.

Ans.

Using Docker image build and deployment in AKS with ACR

  • Create a Dockerfile to define the image

  • Build the Docker image using 'docker build' command

  • Push the image to Azure Container Registry (ACR)

  • Create a Kubernetes deployment manifest referencing the image in ACR

  • Deploy the application to Azure Kubernetes Service (AKS)

Asked in TCS

6d ago

Q. Explain Terraform modules and how to use them.

Ans.

Terraform module is a reusable set of resources that can be used to create infrastructure.

  • Terraform modules can be used to create reusable infrastructure code.

  • They can be shared across teams and projects.

  • Modules can be published to the Terraform Registry for easy access.

  • Modules can be parameterized to allow for customization.

  • Example: A module for creating an AWS VPC with subnets and security groups.

Asked in Genpact

1d ago

Q. Tell me about the software development lifecycle.

Ans.

Software development lifecycle is a process used by software development teams to design, develop, test, and deploy software applications.

  • It consists of several phases such as planning, design, development, testing, deployment, and maintenance.

  • Each phase has its own set of activities and deliverables.

  • Common methodologies used in software development lifecycle include Waterfall, Agile, and DevOps.

  • Tools like Jira, Git, Jenkins, and Docker are often used to support the software ...read more

2d ago

Q. Write a Jenkins pipeline that uses environment variables.

Ans.

Jenkins pipeline with environment variable

  • Define environment variable in Jenkinsfile

  • Use 'environment' directive to set environment variables

  • Access environment variable using 'env.' syntax

Asked in Jio

3d ago

Q. How would you minimize downtime?

Ans.

Minimizing downtime can be achieved through proper planning, monitoring, and automation.

  • Conduct regular maintenance and updates to prevent system failures

  • Implement redundancy and failover mechanisms to ensure continuous operation

  • Monitor system performance and proactively address potential issues

  • Automate processes to reduce the risk of human error and speed up recovery time

  • Have a disaster recovery plan in place to quickly restore services in case of a major outage

Asked in TCS

1d ago

Q. Explain a good SCM branching strategy.

Ans.

A good SCM branching strategy involves clear naming conventions, regular merges, and a well-defined release process.

  • Use a naming convention that clearly identifies the purpose of each branch

  • Regularly merge changes from development branches into the main branch

  • Have a well-defined release process that includes testing and deployment

  • Consider using feature toggles to enable/disable new functionality

  • Use automation tools to streamline the branching and merging process

Asked in Infosys

5d ago

Q. What are provisioners in Terraform?

Ans.

Provisioners in Terraform are used to execute scripts on a local or remote machine as part of resource creation or destruction.

  • Provisioners can be used to install software, run configuration management tools, or execute scripts on instances created by Terraform.

  • There are different types of provisioners such as local-exec, remote-exec, and file.

  • Provisioners should be used sparingly as they can make Terraform configurations less predictable and harder to maintain.

Q. What are the day-to-day activities of a DevOps engineer?

Ans.

DevOps engineers are responsible for automating, monitoring, and maintaining the infrastructure and deployment pipelines.

  • Automating build and deployment processes using tools like Jenkins, GitLab CI/CD, or CircleCI

  • Monitoring system performance and availability using tools like Prometheus, Grafana, or ELK stack

  • Collaborating with development and operations teams to streamline processes and improve efficiency

  • Managing infrastructure as code using tools like Terraform or Ansible

  • Im...read more

Asked in Infosys

2d ago

Q. General Devops principles

Ans.

DevOps principles focus on collaboration, automation, measurement, and continuous improvement.

  • Collaboration between development and operations teams

  • Automation of processes to increase efficiency and reduce errors

  • Measurement of performance metrics to identify areas for improvement

  • Continuous improvement through feedback and iteration

  • Use of tools like Docker, Kubernetes, and Jenkins to support DevOps practices

Q. Sub- nets on virtual machine

Ans.

Subnets on virtual machines refer to dividing a network into smaller segments for better organization and security.

  • Subnets help in managing network traffic efficiently

  • Each subnet can have its own security policies and access controls

  • Subnets can be used to isolate different parts of a network for security reasons

Q. V-net peering in cloud

Ans.

VNet peering allows connecting virtual networks in Azure

  • VNet peering enables resources in different virtual networks to communicate securely

  • Traffic between peered VNets stays on the Microsoft backbone network

  • No public internet, gateways, or encryption needed for communication between peered VNets

Asked in Infosys

1d ago

Q. What is Terraform?

Ans.

Terraform is an open-source infrastructure as code software tool created by HashiCorp.

  • Terraform allows users to define and provision data center infrastructure using a declarative configuration language.

  • It supports multiple cloud providers such as AWS, Azure, and Google Cloud Platform.

  • Terraform uses a 'plan and apply' workflow to make changes to infrastructure.

  • Infrastructure code written in Terraform is versioned and can be shared and reused.

  • Terraform state files store the cu...read more

Asked in Infosys

2d ago

Q. What CI/CD branching process do you follow?

Ans.

CI/CD branching process involves strategies for managing code changes and deployments efficiently.

  • Feature Branching: Each new feature is developed in its own branch, e.g., 'feature/user-auth'.

  • Release Branching: A branch is created for each release, e.g., 'release/v1.0'.

  • Hotfix Branching: Critical fixes are made in a separate branch, e.g., 'hotfix/issue-123'.

  • Main Branch: The 'main' or 'master' branch always contains production-ready code.

  • Pull Requests: Code changes are merged b...read more

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
Tech Mahindra Logo
3.5
 • 4.1k Interviews
Genpact Logo
3.7
 • 3.4k Interviews
View all

Top Interview Questions for Devops Consultant Related Skills

interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Devops Consultant 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 L+

Reviews

10L+

Interviews

4 Cr+

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