CompTIA Linux+ (XK0-006)Automation, Orchestration and ScriptingEasy
A team is adopting Infrastructure as Code (IaC) principles for their cloud environment. They want to manage their virtual machines, networks, and storage using code. Which of the following is a primary benefit of implementing IaC?
- AEliminates the need for any scripting or automation tools.
- BEnables manual configuration of infrastructure for greater control.
- CProvides version control, consistency, and repeatability for infrastructure deployments.
- DRestricts infrastructure changes to a single, dedicated administrator.
Show answer & explanationAnswer & explanation
Correct answer: C. Provides version control, consistency, and repeatability for infrastructure deployments.
IaC's primary benefits include applying software development practices to infrastructure. This means infrastructure definitions are version-controlled, leading to consistent, repeatable deployments and reducing configuration drift.
Why the other options are wrong
- A. IaC relies heavily on scripting and automation tools (like Terraform, Ansible) to define and provision infrastructure.
- B. IaC aims to automate and codify infrastructure configuration, moving away from manual processes to reduce errors and increase speed.
- D. IaC promotes collaboration and allows multiple team members to contribute to infrastructure definitions, rather than restricting it to one person.
Infrastructure as Code (IaC)
Infrastructure as Code (IaC) is the practice of managing and provisioning computing infrastructure (e.g., networks, virtual machines, load balancers) using machine-readable definition files, rather than physical hardware configuration or interactive configuration tools. It applies software engineering best practices to infrastructure.
- Infrastructure definitions are codified in files (e.g., YAML, JSON).
- Enables version control, consistency, and repeatability.
- Reduces manual errors and configuration drift.
- Facilitates automation and collaboration.
Memory trick: Versioned Code Ensures Repeatable Infrastructure.