Infrastructure As Code MCQs with Answers and Explanations

Practice Infrastructure As Code MCQs. from DevOps subject. with solved answers and explanations. updated syllabus-based questions.

Search MCQs, Papers, Topics

Loading MCQs...
AI hard

Question 1: What does "immutable infrastructure" mean in DevOps?

Immutable infrastructure means servers are never modified after deployment. When changes are needed, new server instances are built and deployed to replace old ones. This ensures consistency, repeatability, and easier rollbacks.

Immutable Infrastructure Devops Iac Deployment Best Practices
AI medium

Question 2: What is "Infrastructure as Code" (IaC) tool Terraform's primary language?

Terraform uses HCL (HashiCorp Configuration Language) as its primary language for defining infrastructure. HCL is human-readable and declarative, though Terraform also supports JSON for configurations.

Terraform Hcl Hashicorp Iac Devops
AI hard

Question 3: Which concept in DevOps refers to treating servers like cattle, not pets?

The "cattle, not pets" philosophy treats servers as interchangeable and disposable — when one fails, it is replaced rather than repaired. This approach supports automation, immutability, and scalability in modern DevOps.

Cattle Vs Pets Devops Immutable Infrastructure Cloud Server Management
AI medium

Question 4: Which tool is used for configuration management and infrastructure automation, developed by HashiCorp?

Terraform is an open-source Infrastructure as Code tool developed by HashiCorp. It allows users to define and provision cloud and on-premises infrastructure using declarative configuration files.

Terraform Hashicorp Iac Infrastructure As Code Devops
AI easy

Question 5: What does IaC stand for in DevOps?

IaC stands for Infrastructure as Code, a practice where infrastructure is provisioned and managed using code and automation tools like Terraform, Ansible, or CloudFormation instead of manual processes.

Iac Infrastructure As Code Devops Terraform Automation
AI hard

Question 6: Which of the following best describes Infrastructure as Code (IaC)?

IaC is the practice of defining and managing infrastructure through code instead of manual configuration.

Iac Automation Infrastructure Devops
AI hard

Question 7: Which of the following best describes Infrastructure as Code (IaC)?

Infrastructure as Code (IaC) is the practice of managing infrastructure using machine-readable configuration files.

Iac Infrastructure Automation Devops

Showing 1 to 7 of 7 results