Devops Consultant
20+ Devops Consultant Interview Questions and Answers

Asked in Capgemini

Q. AWS different types of load balancer, difference, layers they work on, Auto-Scaling, S3 cloud storage types
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

Q. DevOps CI/CD flow, difference between git stash and git commit, git merge and git rebase, git pull and git fetch
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

Asked in Infosys

Q. How will you connect to your instances?
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.

Asked in Ernst & Young

Q. Explain the Kubernetes architecture, the functionality of each component, and which network is used in the Kubernetes cluster to establish communication between pods.
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

Asked in Ernst & Young

Q. What is VPC and vpc peering, how we configure azure devops with AWS Instances
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

Q. Kubernetes pods, difference between deployment and daemonset
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



Asked in Repsoft Consultancy Services

Q. Docker: run vs entry point,copy vs add, process vs demons
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.

Asked in Tech Mahindra

Q. Explain Devops CICD experience AWS, GCP, Azure cloud or on premise cloud experience. Jenkins, ansible, pythons, git, docker, kubernatives, confluence, jira, bitbucket, GitHub
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 🌟
Asked in Repsoft Consultancy Services

Q. How should you ensure high availability for your application?
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

Q. How do you handle Terraform tfstate and Terraform recovery of corrupted/deleted state files?
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

Asked in Ernst & Young

Q. write a docker file for python code and explain each command, the difference between ADD & COPY
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

Asked in Ernst & Young

Q. Write a shell script to sort all files in descending order.
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
Asked in Repsoft Consultancy Services

Q. Explain how to build and deploy a Docker image in AKS using ACR.
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

Q. Explain Terraform modules and how to use them.
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

Q. Tell me about the software development lifecycle.
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

Asked in Ernst & Young

Q. Write a Jenkins pipeline that uses environment variables.
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

Q. How would you minimize downtime?
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

Q. Explain a good SCM branching strategy.
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

Q. What are provisioners in Terraform?
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.
Asked in Repsoft Consultancy Services

Q. What are the day-to-day activities of a DevOps engineer?
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

Q. General Devops principles
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
Asked in Repsoft Consultancy Services

Q. Sub- nets on virtual machine
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
Asked in Repsoft Consultancy Services

Q. V-net peering in cloud
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

Q. What is Terraform?
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

Q. What CI/CD branching process do you follow?
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 Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Devops Consultant Related Skills



Reviews
Interviews
Salaries
Users

