Question 9 of 10Pro Only
Explain the difference between declarative and imperative approaches in Infrastructure as Code. Which approach does Terraform use, and why?
Sample answer preview
Declarative and imperative are two fundamentally different approaches to defining infrastructure. Understanding the distinction is crucial for choosing the right tools and writing effective infrastructure code.
declarativeimperativeidempotencydesired statestate filedependency management