DevNet Associate (DEVASC) v1.0Infrastructure and AutomationMedium

A network architect is designing an Infrastructure as Code (IaC) solution for a hybrid cloud environment. The solution needs to provision and manage resources consistently across both on-premises virtualized infrastructure (VMware) and public cloud providers (AWS, Azure). Which IaC tool is best known for its multi-cloud and on-premises orchestration capabilities using a declarative approach?

  1. AAnsible
  2. BTerraform
  3. CPuppet
  4. DChef
Show answer & explanation

Correct answer: B. Terraform

Terraform is an open-source IaC tool specifically designed for provisioning and managing infrastructure across multiple cloud providers and on-premises environments (hybrid cloud). Its declarative configuration language (HCL) allows defining the desired state of infrastructure, making it highly effective for consistent deployments.

Why the other options are wrong

  • A. Ansible is primarily a configuration management tool, though it can provision. Its strength is less in multi-cloud infrastructure orchestration compared to Terraform.
  • C. Puppet is a configuration management tool, similar to Chef, and not designed for multi-cloud infrastructure provisioning in the same way as Terraform.
  • D. Chef is a configuration management tool, focused on installing and configuring software on existing infrastructure, not primarily for provisioning multi-cloud infrastructure.

Terraform for IaC

Terraform is an open-source Infrastructure as Code (IaC) tool by HashiCorp that allows users to define and provision datacenter infrastructure using a declarative configuration language. It supports a multitude of cloud providers and on-premises solutions.

  • Declarative configuration (HCL)
  • Multi-cloud and hybrid cloud support
  • Infrastructure provisioning and management
  • State management to track deployed resources
  • Uses providers for different platforms

Memory trick: Terraform molds the earth for all clouds.

More Infrastructure and Automation questions