nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #99

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

The correct answer is A. remote-exec. The remote-exec provisioner invokes a script or commands directly on the remote resource (e.g., a virtual machine) that Terraform just created, using SSH or WinRM. This is used for tasks like installing software on the newly created resource. Option B (null-exec) does not exist i

Submitted by fatema_kw· Apr 18, 2026Work with Terraform Configurations

Question

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

Options

  • Aremote-exec
  • Bnull-exec
  • Clocal-exec
  • Dfile

How the community answered

(48 responses)
  • A
    94% (45)
  • C
    4% (2)
  • D
    2% (1)

Explanation

The remote-exec provisioner invokes a script or commands directly on the remote resource (e.g., a virtual machine) that Terraform just created, using SSH or WinRM. This is used for tasks like installing software on the newly created resource. Option B (null-exec) does not exist in Terraform. Option C (local-exec) runs commands on the machine where Terraform is executing, not on the remote resource. Option D (file) is a provisioner that copies files to a remote resource but does not execute processes.

Topics

#Provisioners#remote-exec#Resource configuration#Post-creation actions

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice