TA-002-P · Question #139
TA-002-P Question #139: Real Exam Question with Answer & Explanation
The correct answer is A: To invoke a local executable.. {"question_number": 3, "question": "What is the purpose of using the local-exec provisioner? (Select Two)", "correct_answer": "A. To invoke a local executable. C. To execute one or more commands on the machine running Terraform.", "explanation": "The local-exec provisioner runs c
Question
What is the purpose of using the local-exec provisioner? (Select Two)
Options
- ATo invoke a local executable.
- BExecutes a command on the resource to invoke an update to the Terraform state.
- CTo execute one or more commands on the machine running Terraform.
- DEnsures that the resource is only executed in the local infrastructure where Terraform is
Explanation
{"question_number": 3, "question": "What is the purpose of using the local-exec provisioner? (Select Two)", "correct_answer": "A. To invoke a local executable. C. To execute one or more commands on the machine running Terraform.", "explanation": "The local-exec provisioner runs commands on the local machine where Terraform is being executed - not on the remote resource. It is used to invoke local executables or run local scripts as part of resource creation. Option B is incorrect because local-exec does not execute commands on the remote resource (that is remote-exec's role). Option D is incorrect because local-exec is not restricted to 'local infrastructure' - it runs wherever the Terraform CLI is running, regardless of where resources are deployed.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.