Automation and Programmability

A team must provision new cloud virtual networks and subnets from a declarative definition file, with the tool tracking the resulting infrastructure in a state file. Which tool fits BEST?

Show the answer

Correct answerC. Terraform

AWhy not this: Chef is agent-based, uses Ruby recipes, and pulls configuration; it is not a state-file provisioning tool.

BWhy not this: Ansible pushes playbook tasks over SSH and keeps no state file of provisioned resources.

CWhy this is right: Terraform provisions infrastructure from declarative files and tracks the created resources in a state file.

DWhy not this: Puppet is agent-based and pull-model, aimed at enforcing device configuration, not provisioning cloud networks.

Terraform is a declarative infrastructure-provisioning tool that records the resources it creates in a state file and reconciles them with the definition. Ansible is agentless and push-based, built for configuration tasks through playbooks, and does not keep a state file of provisioned infrastructure.