DevNet Associate (DEVASC) v1.0Infrastructure and AutomationMedium
A development team is implementing an Infrastructure as Code (IaC) solution for their cloud deployments. They need a tool that can define infrastructure using a declarative language, manage state, and support a wide range of cloud providers. Which tool best fits these requirements?
- APuppet
- BAnsible
- CTerraform
- DChef
Show answer & explanationAnswer & explanation
Correct answer: C. Terraform
Terraform is an open-source IaC tool that uses a declarative configuration language (HCL) to define and provision infrastructure. It maintains a state file to track deployed resources and has extensive provider support for various cloud platforms and services.
Why the other options are wrong
- A. Puppet is a configuration management tool focused on server configuration and desired state enforcement.
- B. Ansible is primarily a configuration management tool, though it can provision resources; its strength is configuration.
- D. Chef is a configuration management tool, similar to Puppet, focused on automating software deployment and server configuration.
Terraform
Terraform is an open-source Infrastructure as Code (IaC) tool for building, changing, and versioning infrastructure efficiently and safely. It uses a declarative configuration language.
- Infrastructure as Code (IaC) tool.
- Declarative configuration language (HCL).
- Manages infrastructure state.
- Supports multiple cloud providers (AWS, Azure, GCP, etc.).
Memory trick: IaC builds infrastructure declaratively and tracks its state.