DevOps Interview questions

π I recently attended a DevOps interview β here are the questions they asked me:
πΌ 1. What is your role in your project?
π 2. What is VPC Peering and how does it work?
π§Ύ 3. Write Terraform code to create 5 EC2 instances with different names and sizes.
π₯ 4. How to check the last 5 users who logged into a Linux system?
π³ 5. What is a multi-stage Dockerfile? Can we use the second stage as the first?
π 6. How does an application communicate with the outside world?
π 7. A pod is in CrashLoopBackOff. How do you troubleshoot it?
π§ 8. What are the types of services in Kubernetes?
π§ 9. What is a headless service in Kubernetes?
βοΈ 10. Write a Dockerfile for a ReactJS application.
π 11. In a Kubernetes cluster, one ReplicaSet is not working. How do you debug it?
π₯οΈ 12. How to check CPU usage of a system?
βοΈ 13. What AWS services are used in your project?
π 14. What are the CI/CD steps while developing?
π 15. Write a CI/CD pipeline to build and push a Node.js app image to Docker Hub.
These werenβt just theory β they tested real-world knowledge of Terraform, Kubernetes, Docker, AWS, and CI/CD π οΈ
π Hope this helps anyone preparing for DevOps interviews.
Subscribe to my newsletter
Read articles from Iragani Vamsi sai directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
