Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 242 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 242
Topic #: 1
[All Terraform Associate Questions]

Which provisioner invokes a process on the machine running Terraform?

  • A. remote-exec
  • B. file
  • C. local-exec
  • D. null-exec
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
090200f
3 months, 3 weeks ago
Selected Answer: C
The local-exec provisioner invokes a local executable after a resource is created. This invokes a process on the machine running Terraform, not on the resource. https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec
upvoted 1 times
090200f
3 months, 3 weeks ago
The remote-exec provisioner invokes a script on a remote resource after it is created. This can be used to run a configuration management tool, bootstrap into a cluster, etc. To invoke a local process, see the local-exec provisioner instead. The remote-exec provisioner requires a connection and supports both ssh and winrm.
upvoted 1 times
...
...
trextor
6 months, 2 weeks ago
C. local-exec The local-exec provisioner is used to execute a command or script locally on the machine running Terraform. It's often used for tasks such as running scripts after resource creation or performing local setup/configuration tasks.
upvoted 2 times
...
enry99ita
11 months, 2 weeks ago
Selected Answer: A
local-exec provisioner is execute on the local machine.
upvoted 1 times
enry99ita
11 months, 1 week ago
vote C
upvoted 2 times
...
...
tabkar
1 year, 6 months ago
Selected Answer: C
https://developer.hashicorp.com/terraform/language/resources/provisioners/local-exec
upvoted 3 times
...
Oleg_gol
1 year, 6 months ago
Selected Answer: C
C. local-exec
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...