This lesson compares declarative and imperative Infrastructure as Code (IaC). Declarative IaC means you write the desired end state, and the tool figures out the steps to get there. Imperative IaC means you write exact commands to run step-by-step. Terraform is an example of declarative IaC where you write resource blocks describing your infrastructure. The tool plans and applies changes automatically. Imperative IaC, like using AWS CLI commands, requires you to run each command manually in order. The execution table shows how Terraform plans and applies changes, while imperative commands act immediately. Variable tracking shows how infrastructure state changes after each step. Key moments clarify why Terraform plans first, the risk of missing commands in imperative IaC, and how declarative IaC handles updates automatically. The quiz tests understanding of when instances are created, infrastructure state changes, and consequences of skipping commands. The snapshot summarizes the key differences and behaviors of declarative vs imperative IaC.