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 128 discussion

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

As a member of the operations team, you need to run a script on a virtual machine created by Terraform. Which provision is best to use in your Terraform code?

  • A. null-ex׀µׁ
  • B. local-exec
  • C. remote-exec
  • D. file
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
RVivek
Highly Voted 2 years, 2 months ago
Selected Answer: C
remote-exec to run anything on the deployed virtual machine. local exec is to run anything on the system where terraform is running
upvoted 24 times
bluee
1 year, 10 months ago
thanks mate
upvoted 4 times
...
...
Uma10
Highly Voted 2 years, 2 months ago
Selected Answer: C
The remote-exec provisioner invokes a script on a remote resource after it is created. To invoke a local process, see the local-exec provisioner instead. Source: https://www.terraform.io/language/resources/provisioners/remote-exec
upvoted 10 times
...
imkhan
Most Recent 1 year, 1 month ago
C- remote-exec is the correct answer If you need to run a script on a virtual machine created by Terraform, the remote-exec provisioner is the best choice. The remote-exec provisioner allows you to run commands or scripts on a remote machine, which is especially useful for configuring and provisioning resources after they have been created.
upvoted 1 times
...
Only5
1 year, 9 months ago
Selected Answer: C
Source: https://www.terraform.io/language/resources/provisioners/remote-exec
upvoted 1 times
...
legendary7
2 years, 1 month ago
c is the correct answer
upvoted 1 times
...
keiffo2
2 years, 2 months ago
remote-exec all day
upvoted 3 times
...
bora4motion
2 years, 2 months ago
Selected Answer: C
VM is not local, I go with remote, C
upvoted 3 times
...
Burakko
2 years, 2 months ago
Selected Answer: C
On a VM , it is a remote-exec.
upvoted 4 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 ...