HashiCorp Certified: Terraform Associate — Question 13

Which provisioner invokes a process on the resource created by Terraform?

Answer options

Correct answer: A

Explanation

The correct answer is A, remote-exec, as this provisioner is specifically designed to execute scripts or commands on a remote resource after it has been provisioned by Terraform. The other options, such as local-exec and null-exec, either execute commands locally or do not perform any execution, making them unsuitable for this purpose.