Add office photos
Tech Mahindra logo
Engaged Employer

Tech Mahindra

Verified
3.5
based on 35.3k Reviews
Video summary
Filter interviews by
Devops Engineer
Clear (1)

Tech Mahindra Devops Engineer Interview Questions and Answers

Updated 27 Sep 2024

Q1. How Can You Ensure High Availability of the etcd Cluster Used by Kubernetes?

Ans.

To ensure high availability of the etcd cluster used by Kubernetes, you can implement redundancy, monitoring, and disaster recovery strategies.

  • Implement a multi-node etcd cluster to ensure redundancy and fault tolerance.

  • Utilize monitoring tools like Prometheus and Grafana to track the health and performance of the etcd cluster.

  • Set up regular backups and implement disaster recovery plans to quickly recover from failures.

  • Use Kubernetes features like PodDisruptionBudgets to prev...read more

Add your answer
right arrow

Q2. How Would You Implement Zero-Downtime Deployments in Kubernetes?

Ans.

Implementing zero-downtime deployments in Kubernetes involves using rolling updates and readiness probes.

  • Use rolling updates to gradually replace old pods with new ones

  • Configure readiness probes to ensure new pods are ready before routing traffic to them

  • Utilize tools like Helm for managing releases and versioning

Add your answer
right arrow

Q3. How Would You Approach Capacity Planning for a Kubernetes Cluster?

Ans.

Capacity planning for a Kubernetes cluster involves analyzing resource usage, predicting future needs, and scaling infrastructure accordingly.

  • Monitor resource usage of pods and nodes using tools like Prometheus and Grafana

  • Analyze historical data to identify trends and patterns in resource consumption

  • Estimate future resource requirements based on application growth and workload changes

  • Scale the cluster by adding or removing nodes, adjusting resource limits, or using auto-scali...read more

Add your answer
right arrow

Q4. Explain the Role and Functionality of the Control Plane Components in Kubernetes.

Ans.

Control plane components in Kubernetes manage the cluster and make decisions about the state of the cluster.

  • Control Manager: Ensures that the desired state of the cluster matches the actual state.

  • Scheduler: Assigns workloads to nodes based on resource availability and constraints.

  • API Server: Acts as the front-end for the Kubernetes control plane and is the primary interface for users and other components.

  • etcd: Consistent and highly-available key-value store used as Kubernetes...read more

Add your answer
right arrow
Discover Tech Mahindra interview dos and don'ts from real experiences

Q5. Explain jenkins pipeline End to End

Ans.

Jenkins pipeline automates the software delivery process from code commit to deployment.

  • Jenkinsfile defines the pipeline stages and steps

  • Pipeline can be scripted or declarative

  • Pipeline can include build, test, deploy stages

  • Pipeline can be triggered by code commit or manual intervention

Add your answer
right arrow

Q6. write scripted pipline

Ans.

Scripted pipeline for DevOps Engineer interview question

  • Define stages for building, testing, and deploying

  • Use Jenkinsfile to define pipeline in Jenkins

  • Utilize declarative syntax for pipeline configuration

  • Leverage tools like Git, Docker, and Kubernetes in pipeline

  • Implement error handling and notifications in pipeline

Add your answer
right arrow
Contribute & help others!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos

Interview Process at Tech Mahindra Devops Engineer

based on 7 interviews
1 Interview rounds
Technical Round
View more
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Devops Engineer Interview Questions from Similar Companies

Accenture Logo
3.8
 • 39 Interview Questions
TCS Logo
3.7
 • 29 Interview Questions
Capgemini Logo
3.7
 • 22 Interview Questions
SAP Logo
4.2
 • 11 Interview Questions
Rebel Foods Logo
3.7
 • 10 Interview Questions
View all
Recently Viewed
INTERVIEWS
Tech Mahindra
No Interviews
REVIEWS
HSBC Electronic Data Processing
No Reviews
INTERVIEWS
Tech Mahindra
10 top interview questions
INTERVIEWS
Tech Mahindra
No Interviews
INTERVIEWS
Tech Mahindra
No Interviews
INTERVIEWS
Tech Mahindra
No Interviews
REVIEWS
HSBC Electronic Data Processing
No Reviews
REVIEWS
HSBC Electronic Data Processing
No Reviews
INTERVIEWS
Cognizant
5.6k top interview questions
INTERVIEWS
Cognizant
10 top interview questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
75 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter