Kubernetes and Cloud Native Associate (KCNA)Cloud Native DeliveryMedium
A startup is building a new application and wants to automate the process of provisioning and managing its underlying infrastructure (servers, networks, databases) in a cloud environment. They aim for consistency, repeatability, and version control for their infrastructure. Which practice is most suitable for achieving this?
- AManual Configuration
- BBash Scripting
- CVirtual Machine Templates
- DInfrastructure as Code (IaC)
Show answer & explanationAnswer & explanation
Correct answer: D. Infrastructure as Code (IaC)
Infrastructure as Code (IaC) is the practice of managing and provisioning infrastructure through code instead of manual processes. This allows for version control, consistency, and repeatability in environment setup.
Why the other options are wrong
- A. Manual configuration is prone to errors, inconsistent, and not version-controlled.
- B. Bash scripting can automate tasks but lacks the declarative, idempotent, and state management capabilities of IaC tools.
- C. VM templates can standardize VMs but don't manage the entire infrastructure stack or provide version control for changes.
Infrastructure as Code (IaC)
Infrastructure as Code (IaC) is the practice of managing and provisioning computing infrastructure through machine-readable definition files, rather than physical hardware configuration or interactive configuration tools.
- Treats infrastructure configuration like application code.
- Enables version control, automation, and consistency.
- Supports declarative and imperative approaches.
Memory trick: IaC builds your cloud house from a blueprint, not by hand.