HashiCorp Certified: Terraform Associate — Question 246
Which provisioner invokes a process on the machine running Terraform?
Answer options
- A. remote-exec
- B. file
- C. local-exec
- D. null-exec
Correct answer: C
Explanation
The correct answer is C, local-exec, because it runs commands directly on the machine running Terraform. Options A and D, remote-exec and null-exec, respectively, do not execute commands on the local machine, while B, file, is used for transferring files rather than executing commands.