HashiCorp Certified: Terraform Associate — Question 72
A Terraform provisioner must be nested inside a resource configuration block.
Answer options
- A. True
- B. False
Correct answer: A
Explanation
The correct answer is A because Terraform provisioners are designed to execute scripts or commands on the resource as part of its lifecycle, which necessitates their inclusion within a resource block. Option B is incorrect since provisioners cannot function independently outside of a resource configuration.