Table of Contents
ToggleSection 1: Kubernetes Concepts (1–20)
1. Which component in Kubernetes schedules pods onto nodes?
A. kubelet
B. kube-scheduler
C. kube-controller-manager
D. etcd
✅ Answer: B
2. What is the smallest deployable unit in Kubernetes?
A. Node
B. Pod
C. Deployment
D. Service
✅ Answer: B
3. Which object in Kubernetes defines a desired state for Pods?
A. ConfigMap
B. Secret
C. Deployment
D. Service
✅ Answer: C
4. Which Kubernetes object exposes an application to external traffic?
A. Deployment
B. Pod
C. Service of type LoadBalancer
D. ConfigMap
✅ Answer: C
5. What stores Kubernetes cluster data in a highly available manner?
A. kubelet
B. etcd
C. kube-proxy
D. Controller
✅ Answer: B
6. Which component runs on every node and manages networking rules?
A. kube-scheduler
B. kube-proxy
C. kubelet
D. etcd
✅ Answer: B
7. What is used to store configuration as key-value pairs in Kubernetes?
A. Secret
B. ConfigMap
C. Deployment
D. StatefulSet
✅ Answer: B
8. Which Kubernetes controller is best for managing stateless applications?
A. StatefulSet
B. ReplicaSet
C. DaemonSet
D. Job
✅ Answer: B
9. You need a pod to run on every node. Which object do you use?
A. Deployment
B. ReplicaSet
C. DaemonSet
D. StatefulSet
✅ Answer: C
10. Which Kubernetes object manages batch jobs?
A. Deployment
B. Job
C. ReplicaSet
D. StatefulSet
✅ Answer: B
11. Which resource is used for persistent storage in Kubernetes?
A. ConfigMap
B. Secret
C. PersistentVolume (PV)
D. Pod
✅ Answer: C
12. Which object allows access to secrets in Kubernetes?
A. ConfigMap
B. Secret
C. PersistentVolumeClaim
D. Service
✅ Answer: B
13. Which networking model is Kubernetes based on?
A. NAT
B. Flat network
C. Overlay network
D. VLAN
✅ Answer: C
14. Which command lists all pods in a Kubernetes cluster?
A. kubectl get nodes
B. kubectl get pods
C. kubectl describe pods
D. kubectl logs pods
✅ Answer: B
15. You want to rollback a deployment. Which command is used?
A. kubectl rollback deployment <name>
B. kubectl apply deployment <name>
C. kubectl delete deployment <name>
D. kubectl edit deployment <name>
✅ Answer: A
16. Which object ensures a stable network identity for stateful apps?
A. Deployment
B. StatefulSet
C. DaemonSet
D. ReplicaSet
✅ Answer: B
17. Which Kubernetes component validates API requests?
A. kube-proxy
B. kube-apiserver
C. kube-scheduler
D. kubelet
✅ Answer: B
18. Which controller scales pods automatically based on CPU/memory usage?
A. Deployment
B. Horizontal Pod Autoscaler (HPA)
C. DaemonSet
D. Job
✅ Answer: B
19. Which object allows routing to multiple backend pods?
A. ConfigMap
B. Secret
C. Service
D. StatefulSet
✅ Answer: C
20. Which command shows detailed info about a pod?
A. kubectl get pods
B. kubectl describe pod <name>
C. kubectl logs <pod>
D. kubectl exec <pod>
✅ Answer: B
Section 2: Terraform Concepts (21–35)
21. Terraform is primarily used for:
A. CI/CD pipelines
B. Infrastructure as Code (IaC)
C. Monitoring
D. Container orchestration
✅ Answer: B
22. Which file extension is used for Terraform configuration?
A. .tf
B. .yml
C. .json
D. .conf
✅ Answer: A
23. Which command initializes a Terraform working directory?
A. terraform apply
B. terraform plan
C. terraform init
D. terraform validate
✅ Answer: C
24. Terraform keeps track of resources using:
A. State file
B. ConfigMap
C. Deployment
D. JSON log
✅ Answer: A
25. Which command previews infrastructure changes without applying them?
A. terraform apply
B. terraform plan
C. terraform destroy
D. terraform validate
✅ Answer: B
26. How does Terraform manage multiple environments?
A. Multiple state files
B. Using namespaces
C. ConfigMaps
D. Pods
✅ Answer: A
27. Which block in Terraform defines a provider?
A. resource
B. variable
C. provider
D. output
✅ Answer: C
28. You want to pass values dynamically into Terraform. Which feature do you use?
A. Provider
B. Variable
C. Resource
D. Module
✅ Answer: B
29. Which Terraform feature allows reusing configuration?
A. Provider
B. Module
C. Resource
D. Output
✅ Answer: B
30. Which command removes all managed resources?
A. terraform destroy
B. terraform apply
C. terraform plan
D. terraform refresh
✅ Answer: A
31. Terraform supports which type of provisioning?
A. Declarative
B. Imperative
C. Procedural
D. Manual
✅ Answer: A
32. Which backend stores Terraform state remotely?
A. Local backend
B. S3 backend
C. Docker container
D. EC2 instance
✅ Answer: B
33. Terraform outputs are defined using:
A. variable block
B. resource block
C. output block
D. provider block
✅ Answer: C
34. Which Terraform command checks syntax without applying?
A. terraform validate
B. terraform plan
C. terraform apply
D. terraform refresh
✅ Answer: A
35. Terraform supports which cloud providers?
A. AWS, Azure, GCP
B. Only AWS
C. Only GCP
D. Only Azure
✅ Answer: A
Section 3: Cloud Tools & Practices (36–50)
36. Which AWS service is serverless compute?
A. EC2
B. Lambda
C. S3
D. VPC
✅ Answer: B
37. Which service stores logs centrally in AWS?
A. EC2
B. CloudWatch Logs
C. S3
D. IAM
✅ Answer: B
38. Which service allows auditing of API calls in AWS?
A. CloudTrail
B. CloudWatch
C. Lambda
D. S3
✅ Answer: A
39. Which tool visualizes metrics from Prometheus?
A. Terraform
B. Grafana
C. Jenkins
D. Docker
✅ Answer: B
40. Which CI/CD tool integrates with Kubernetes pipelines?
A. Ansible
B. Jenkins
C. GitHub Actions
D. Both B and C
✅ Answer: D
41. You want to scale cloud infrastructure automatically. Which tool helps?
A. Terraform
B. Auto Scaling Groups
C. Prometheus
D. Jenkins
✅ Answer: B
42. Which tool ensures least privilege access in AWS?
A. IAM
B. S3
C. CloudWatch
D. CloudTrail
✅ Answer: A
43. Which service provides managed Kubernetes in AWS?
A. EC2
B. EKS
C. Lambda
D. ECS
✅ Answer: B
44. Which tool monitors application performance in real time?
A. Prometheus
B. Terraform
C. Ansible
D. Git
✅ Answer: A
45. Which service automates deployment of AWS resources?
A. CloudFormation
B. CloudWatch
C. S3
D. Lambda
✅ Answer: A
46. Which tool integrates Terraform with GitOps workflows?
A. Flux
B. Docker
C. Jenkins
D. Grafana
✅ Answer: A
47. Which AWS service is used for secret management?
A. S3
B. Secrets Manager
C. CloudWatch
D. Lambda
✅ Answer: B
48. Which service helps set alarms on metrics?
A. CloudTrail
B. CloudWatch
C. IAM
D. EC2
✅ Answer: B
49. Which tool automates configuration management across servers?
A. Terraform
B. Ansible
C. Docker
D. Prometheus
✅ Answer: B
50. Which AWS service provides object storage?
A. EC2
B. S3
C. Lambda
D. CloudWatch
✅ Answer: B
Conclusion
This Expert Quiz on Kubernetes, Terraform, and Cloud Tools tested your understanding of real-world DevOps scenarios, covering orchestration, infrastructure as code, monitoring, CI/CD, and cloud best practices.
Whether you scored high or found some questions challenging, the key takeaway is that DevOps mastery isn’t just about memorizing tools it’s about knowing how and when to apply them in production environments.
Some critical insights from this quiz:
- Kubernetes: Focus on Pods, Deployments, StatefulSets, and networking for scalable applications.
- Terraform: Master infrastructure as code, modules, state management, and providers.
- Cloud Tools: Understand AWS services like EC2, Lambda, CloudWatch, CloudTrail, EKS, and Secrets Manager, and know how they integrate with monitoring, scaling, and automation workflows.
The journey to becoming an expert DevOps engineer is hands-on: practice deployments, manage real infrastructure, experiment with pipelines, and monitor live systems. Use this quiz as a guide to identify gaps and build confidence in applying tools to solve real-world problems.
Remember: In DevOps, understanding concepts and applying them effectively is more important than knowing every tool by name. Keep learning, experimenting, and refining your skills.



