What is the purpose of using the local-exec provisioner? (select two)
A.
ensures that the resource is only executed in the local infrastructure where Terraform is deployed
B.
to execute one or more commands on the machine running Terraform
C.
to invoke a local executable
D.
executes a command on the resource to invoke an update to the Terraform state
The Answer Is:
B, C
This question includes an explanation.
Explanation:
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.
Note that even though the resource will be fully created when the provisioner is run, there is no guarantee that it will be in an operable state - for example, system services such as sshd may not be started yet on compute resources.
VA-002-P PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 75% Discount on All Products,
Use Coupon: "ac75sure"