Reading · 6 minFree preview
Infrastructure as code (IaC) means you describe servers, networks, databases and permissions in text files, keep those files in version control and let a tool create the real resources from them. Compared with clicking in a console or running one-off scripts, IaC gives you:
| Benefit | What it means in practice |
|---|---|
| Repeatability | The same files produce the same environment every time (dev, test, prod) |
| Versioning | Every change is a commit: reviewable, attributable and revertable |
| Speed | A whole environment is created or destroyed with one command |
| Consistency | Less manual drift between environments and less "snowflake" infrastructure |
| Documentation | The code is an always-accurate description of what exists |
| Collaboration | Pull requests, code review and automated checks apply to infrastructure too |
Two ideas come up constantly in exam questions:
Declarative tools are idempotent: applying the same configuration twice changes nothing the second time.
Exam tip: if an option says Terraform "executes the steps you list in order", it is wrong. Terraform builds a dependency graph from your references and decides the order itself.
Log in to join the discussion.
Log in