DevOps Engineer Interview MCQs (50 Questions with
Answers)
Section: CI/CD
1. What does CI in CI/CD stand for?
Answer: b) Continuous Integration
2. Which of the following ensures automated delivery after CI?
Answer: d) Continuous Delivery
3. Which tool is commonly used for CI/CD automation?
Answer: a) Jenkins
4. Which CI/CD principle focuses on detecting bugs early?
Answer: b) Continuous Feedback
5. Which file in GitHub triggers CI workflows?
Answer: b) .github/workflows/*.yml
6. Which is NOT a CI/CD tool?
Answer: d) AWS S3
7. What is the benefit of CI/CD pipelines?
Answer: c) Faster and automated deployments
8. Which step comes first in CI/CD?
Answer: d) Merge
9. What is an artifact in CI/CD?
Answer: b) Compiled package for deployment
10. Which of these tools is used for code quality in CI/CD?
Answer: a) SonarQube
Section: Docker
11. What is Docker primarily used for?
Answer: b) Containerizing applications
12. What is the default network driver in Docker?
Answer: b) Bridge
13. Which command lists all running containers?
Answer: c) docker ps
14. Which command builds a Docker image?
Answer: b) docker build
15. Which file defines instructions for creating an image?
Answer: b) Dockerfile
16. What is the purpose of docker-compose?
Answer: a) Orchestrating multiple containers
17. Which Docker command removes an image?
Answer: c) docker rmi
18. Which of these is NOT part of Docker architecture?
Answer: c) Docker Node
19. Which registry is the default for Docker?
Answer: c) Docker Hub
20. How do you persist data in Docker?
Answer: b) By using Volumes
Section: Jenkins
21. Jenkins is primarily used for:
Answer: b) CI/CD automation
22. Which file defines a Jenkins pipeline?
Answer: b) Jenkinsfile
23. Which plugin is used for Git integration in Jenkins?
Answer: a) GitHub Plugin
24. What does Jenkins agent do?
Answer: a) Runs pipeline steps
25. What is the default Jenkins port?
Answer: c) 8080
26. Which script type is more user-friendly in Jenkins pipelines?
Answer: b) Declarative
27. Which command restarts Jenkins from CLI?
Answer: b) safe-restart
28. How do you manage secrets in Jenkins?
Answer: b) Credentials Manager
Section: AWS
29. Which AWS service stores objects?
Answer: b) S3
30. Which AWS service is best for running containers serverlessly?
Answer: a) ECS with Fargate
31. What is IAM in AWS?
Answer: a) Identity and Access Management
32. Which AWS service provides managed Kubernetes?
Answer: b) EKS
33. What is the max size of a single S3 object?
Answer: d) 5TB
34. Which AWS service automates deployments?
Answer: a) CodeDeploy
35. Which AWS service monitors logs and metrics?
Answer: a) CloudWatch
36. Which AWS service stores Docker images?
Answer: b) ECR
Section: Kubernetes & IaC
37. What is Kubernetes used for?
Answer: b) Container orchestration
38. What is a Pod in Kubernetes?
Answer: b) Smallest deployable unit in Kubernetes
39. Which file format is used in Kubernetes configuration?
Answer: b) YAML
40. Which Kubernetes object exposes services to the internet?
Answer: c) Ingress
41. What is Terraform primarily used for?
Answer: b) Infrastructure as Code
42. What language does Terraform use?
Answer: b) HCL (HashiCorp Configuration Language)
43. Which Terraform command creates resources?
Answer: b) terraform apply
44. Which Terraform command shows execution plan?
Answer: b) terraform plan
Section: Monitoring & Misc
45. Which tool is used for metrics monitoring?
Answer: a) Prometheus
46. Which tool provides dashboards for monitoring?
Answer: a) Grafana
47. Which command checks Docker container logs?
Answer: a) docker logs
48. Which Git command creates a new branch?
Answer: a) git branch
49. Which Git command stages changes?
Answer: b) git add
50. Which type of testing is automated in CI/CD?
Answer: b) Unit