1. What does IaC stand for?
A. Infrastructure as Code
B. Integration as Code
C. Internet as Cloud
D. Instance and Compute
✅ Answer: A
2. What is the main purpose of Infrastructure as Code?
A. Manual server configuration
B. Automating infrastructure provisioning
C. Writing application code
D. Monitoring cloud usage
✅ Answer: B
3. Which language style does Terraform use?
A. YAML
B. JSON only
C. HCL (HashiCorp Configuration Language)
D. Python
✅ Answer: C
4. IaC helps mainly with:
A. UI design
B. Consistency and repeatability
C. Writing APIs
D. Database queries
✅ Answer: B
5. Which is an example of an IaC tool?
A. Jenkins
B. Docker
C. Terraform
D. Git
✅ Answer: C‘
6. Which cloud provider uses CloudFormation?
A. Azure
B. Google Cloud
C. AWS
D. IBM Cloud
✅ Answer: C
7. What type of approach does Terraform follow?
A. Imperative
B. Declarative
C. Procedural
D. Manual
✅ Answer: B
8. Which file extension is commonly used in Terraform?
A. .yaml
B. .json
C. .tf
D. .py
✅ Answer: C
9. IaC allows infrastructure to be:
A. Random
B. Version controlled
C. Hidden
D. Deleted permanently
✅ Answer: B
10. Which version control system is commonly used with IaC?
A. SVN
B. Git
C. FTP
D. SCP
✅ Answer: B
11. What does “immutable infrastructure” mean?
A. Infrastructure cannot be changed
B. Infrastructure is manually updated
C. Infrastructure is replaced, not modified
D. Infrastructure is temporary
✅ Answer: C
12. Which Azure IaC tool uses JSON templates?
A. Terraform
B. ARM Templates
C. Ansible
D. Helm
✅ Answer: B
13. What command initializes a Terraform working directory?
A. terraform start
B. terraform init
C. terraform apply
D. terraform plan
✅ Answer: B
14. Which command shows what Terraform will change?
A. terraform build
B. terraform init
C. terraform plan
D. terraform destroy
✅ Answer: C
15. What does terraform apply do?
A. Deletes infrastructure
B. Validates syntax only
C. Creates or updates infrastructure
D. Downloads plugins
✅ Answer: C
16. What is a Terraform provider?
A. Cloud user
B. Plugin to interact with APIs
C. Code editor
D. Backend storage
✅ Answer: B
17. Which file stores Terraform state by default?
A. state.json
B. terraform.tf
C. terraform.tfstate
D. backend.tf
✅ Answer: C
18. Why is Terraform state important?
A. It stores credentials
B. It tracks real infrastructure
C. It stores logs
D. It runs scripts
✅ Answer: B
19. What is Ansible mainly used for?
A. Container orchestration
B. Configuration management
C. Cloud billing
D. Monitoring
✅ Answer: B
20. Which language does Ansible use for playbooks?
A. XML
B. JSON
C. YAML
D. HCL
✅ Answer: C
21. Which IaC concept avoids manual errors?
A. Manual provisioning
B. Automation
C. GUI usage
D. SSH access
✅ Answer: B
22. Declarative IaC focuses on:
A. How to do something
B. Final desired state
C. Step-by-step commands
D. Scripts only
✅ Answer: B
23. Imperative IaC focuses on:
A. End state only
B. What, not how
C. Step-by-step instructions
D. Read-only templates
✅ Answer: C
24. Which is NOT an IaC benefit?
A. Faster deployments
B. Higher consistency
C. Increased manual work
D. Version control
✅ Answer: C
25. IaC is commonly used in which practice?
A. Waterfall
B. DevOps
C. Agile testing
D. UI/UX
✅ Answer: B
26. Which tool is agentless?
A. Chef
B. Puppet
C. Ansible
D. SaltStack
✅ Answer: C
27. What does CI/CD stand for?
A. Code Integration / Code Deployment
B. Continuous Integration / Continuous Deployment
C. Cloud Infrastructure / Cloud Delivery
D. Continuous Improvement / Continuous Design
✅ Answer: B
28. IaC works best when combined with:
A. Manual approval
B. CI/CD pipelines
C. FTP servers
D. Local scripts only
✅ Answer: B
29. What is “drift” in IaC?
A. Code deletion
B. Infrastructure mismatch from code
C. Network latency
D. Pipeline failure
✅ Answer: B
30. Which command removes Terraform-managed infrastructure?
A. terraform stop
B. terraform delete
C. terraform destroy
D. terraform remove
✅ Answer: C
31. Which storage is recommended for Terraform state in teams?
A. Local file
B. Email
C. Remote backend
D. USB drive
✅ Answer: C
32. IaC improves security by:
A. Hardcoding passwords
B. Reusing configurations
C. Enforcing standard policies
D. Ignoring audits
✅ Answer: C
33. Which tool is used for Kubernetes IaC?
A. Helm
B. Maven
C. Gradle
D. Ant
✅ Answer: A
34. What is a Terraform module?
A. A plugin
B. A reusable code block
C. A command
D. A provider
✅ Answer: B
35. Which cloud supports Bicep?
A. AWS
B. Azure
C. GCP
D. Oracle
✅ Answer: B
36. IaC reduces which risk?
A. Network failure
B. Human error
C. Hardware failure
D. Internet outage
✅ Answer: B
37. What is GitOps?
A. Git-based application coding
B. Using Git to manage infrastructure and deployments
C. Git hosting service
D. Git backup process
✅ Answer: B
38. Which is NOT a configuration management tool?
A. Ansible
B. Chef
C. Puppet
D. Terraform
✅ Answer: D
39. What does YAML stand for?
A. Yet Another Markup Language
B. Your Application Markup Language
C. Young Advanced ML
D. Yearly Automation Logic
✅ Answer: A
40. IaC makes disaster recovery:
A. Harder
B. Slower
C. Easier
D. Impossible
✅ Answer: C
41. Which practice stores IaC code safely?
A. Clipboard
B. Email
C. Version control
D. Screenshot
✅ Answer: C
42. What does “idempotent” mean in IaC?
A. Always fails
B. Produces same result repeatedly
C. Runs only once
D. Deletes resources
✅ Answer: B
43. Which command checks Terraform code validity?
A. terraform test
B. terraform validate
C. terraform check
D. terraform verify
✅ Answer: B
44. IaC supports scalability by:
A. Manual resizing
B. Automated provisioning
C. Fixed resources
D. Hard limits
✅ Answer: B
45. Which is a key IaC principle?
A. ClickOps
B. Automation
C. Manual approval
D. GUI usage
✅ Answer: B
46. What happens if IaC code is deleted?
A. Infrastructure auto-deletes
B. Infrastructure remains unchanged
C. Cloud crashes
D. Account is locked
✅ Answer: B
47. Which tool is cloud-agnostic?
A. ARM Templates
B. CloudFormation
C. Terraform
D. Bicep
✅ Answer: C
48. IaC templates should be:
A. Unreadable
B. Hardcoded
C. Reusable
D. Encrypted only
✅ Answer: C
49. What is the first step in IaC adoption?
A. Buy servers
B. Choose tools
C. Define infrastructure in code
D. Create dashboards
✅ Answer: C
50. IaC primarily benefits which roles?
A. Designers
B. DevOps & Cloud Engineers
C. HR teams
D. Sales teams
✅ Answer: B
Conclusion.
Infrastructure as Code (IaC) is a foundational skill for modern cloud and DevOps professionals. This quiz was designed to help you evaluate your understanding of cloud automation concepts, IaC tools, best practices, and real world DevOps workflows. Whether you scored high or identified areas to improve, each question highlights the importance of consistency, scalability, and automation in managing cloud infrastructure.
Continuous learning and hands-on practice are key to mastering IaC. By strengthening your knowledge of tools like Terraform, Ansible, and cloud-native templates, you move closer to building reliable, secure, and production-ready infrastructure.
At Jeevi Academy, we encourage learners to use quizzes like this as a self-assessment tool and a stepping stone toward deeper practical experience in DevOps and cloud engineering.



