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.

1
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

Iragani Vamsi sai
Iragani Vamsi sai