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
Question
Options
- Aremote-exec
- Bnull-exec
- Clocal-exec
- Dfile
How the community answered
(48 responses)- A94% (45)
- C4% (2)
- D2% (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
Community Discussion
No community discussion yet for this question.