A provider configuration block is required in every Terraform configuration. Example:
Answer(s): B
Unlike many other objects in the Terraform language, a provider block may be omitted if its contents would otherwise be empty. Terraform assumes an empty default configuration for any provider that is not explicitly configured.
https://www.terraform.io/language/providers/configuration
You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script. Which of the following commands would you use first?
Answer(s): A
https://www.terraform.io/cli/commands/taint
Which provisioner invokes a process on the resource created by Terraform?
"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://www.terraform.io/language/resources/provisioners/local-exec"The remote-exec provisioner invokes a script on a remote resource after it is created." https://www.terraform.io/language/resources/provisioners/remote-exec
Which of the following is not true of Terraform providers?
Answer(s): E
This provider is collaboratively maintained by the Google Terraform Team at Google and the Terraform team at HashiCorp https://www.terraform.io/language/providers
https://registry.terraform.io/providers/hashicorp/google/latest
Post your Comments and Discuss HashiCorp TA-002-P exam prep with other Community members:
We’re offering these study questions to support your success. The least you can do? Drop a useful comment about each question. Help others. Build the community.