HashiCorp TA-002-P Exam (page: 2)
HashiCorp Certified: Terraform Associate
Updated on: 12-Feb-2026

Viewing Page 2 of 91

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?

  1. terraform taint null_resource.run_script
  2. terraform apply -target=null_resource.run_script
  3. terraform validate null_resource.run_script
  4. terraform plan -target=null_resource.run_script

Answer(s): A


Reference:

https://www.terraform.io/cli/commands/taint



Which provisioner invokes a process on the resource created by Terraform?

  1. remote-exec
  2. null-exec
  3. local-exec
  4. file

Answer(s): A

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."


Reference:

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?

  1. Providers can be written by individuals
  2. Providers can be maintained by a community of users
  3. Some providers are maintained by HashiCorp
  4. Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on Terraform providers
  5. None of the above

Answer(s): E

Explanation:

This provider is collaboratively maintained by the Google Terraform Team at Google and the Terraform team at HashiCorp https://www.terraform.io/language/providers


Reference:

https://registry.terraform.io/providers/hashicorp/google/latest



What command does Terraform require the first time you run it within a configuration directory?

  1. terraform import
  2. terraform init
  3. terraform plan
  4. terraform workspace

Answer(s): B

Explanation:

terraform init command is used to initialize a working directory containing Terraform configuration files. Reference:
https://www.terraform.io/docs/cli/commands/init.html



You have deployed a new webapp with a public IP address on a clod provider. However, you did not create any outputs for your code.
What is the best method to quickly find the IP address of the resource you deployed?

  1. Run terraform output ip_address to view the result
  2. In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
  3. Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
  4. Run terraform destroy then terraform apply and look for the IP address in stdout

Answer(s): C


Reference:

https://www.terraform.io/cli/commands/state/show



Viewing Page 2 of 91



Share your comments for HashiCorp TA-002-P exam with other users:

Prince 10/31/2023 9:09:00 PM

is it possible to clear the exam if we focus on only these 156 questions instead of 623 questions? kindly help!
Anonymous


Ali Azam 12/7/2023 1:51:00 AM

really helped with preparation of my scrum exam
Anonymous


Jerman 9/29/2023 8:46:00 AM

very informative and through explanations
Anonymous


Jimmy 11/4/2023 12:11:00 PM

prep for exam
INDONESIA


Abhi 9/19/2023 1:22:00 PM

thanks for helping us
Anonymous


mrtom33 11/20/2023 4:51:00 AM

i prepared for the eccouncil 350-401 exam. i scored 92% on the test.
Anonymous


JUAN 6/28/2023 2:12:00 AM

aba questions to practice
UNITED STATES


LK 1/2/2024 11:56:00 AM

great content
Anonymous


Srijeeta 10/8/2023 6:24:00 AM

how do i get the remaining questions?
INDIA


Jovanne 7/26/2022 11:42:00 PM

well formatted pdf and the test engine software is free. well worth the money i sept.
ITALY


CHINIMILLI SATISH 8/29/2023 6:22:00 AM

looking for 1z0-116
Anonymous


Pedro Afonso 1/15/2024 8:01:00 AM

in question 22, shouldnt be in the data (option a) layer?
Anonymous


Pushkar 11/7/2022 12:12:00 AM

the questions are incredibly close to real exam. you people are amazing.
INDIA


Ankit S 11/13/2023 3:58:00 AM

q15. answer is b. simple
UNITED STATES


S. R 12/8/2023 9:41:00 AM

great practice
FRANCE


Mungara 3/14/2023 12:10:00 AM

thanks to this exam dumps, i felt confident and passed my exam with ease.
UNITED STATES


Anonymous 7/25/2023 2:55:00 AM

need 1z0-1105-22 exam
Anonymous


Nigora 5/31/2022 10:05:00 PM

this is a beautiful tool. passed after a week of studying.
UNITED STATES


Av dey 8/16/2023 2:35:00 PM

can you please upload the dumps for 1z0-1096-23 for oracle
INDIA


Mayur Shermale 11/23/2023 12:22:00 AM

its intresting, i would like to learn more abouth this
JAPAN


JM 12/19/2023 2:23:00 PM

q252: dns poisoning is the correct answer, not locator redirection. beaconing is detected from a host. this indicates that the system has been infected with malware, which could be the source of local dns poisoning. location redirection works by either embedding the redirection in the original websites code or having a user click on a url that has an embedded redirect. since users at a different office are not getting redirected, it isnt an embedded redirection on the original website and since the user is manually typing in the url and not clicking a link, it isnt a modified link.
UNITED STATES


Freddie 12/12/2023 12:37:00 PM

helpful dump questions
SOUTH AFRICA


Da Costa 8/25/2023 7:30:00 AM

question 423 eigrp uses metric
Anonymous


Bsmaind 8/20/2023 9:22:00 AM

hello nice dumps
Anonymous


beau 1/12/2024 4:53:00 PM

good resource for learning
UNITED STATES


Sandeep 12/29/2023 4:07:00 AM

very useful
Anonymous


kevin 9/29/2023 8:04:00 AM

physical tempering techniques
Anonymous


Blessious Phiri 8/15/2023 4:08:00 PM

its giving best technical knowledge
Anonymous


Testbear 6/13/2023 11:15:00 AM

please upload
ITALY


shime 10/24/2023 4:23:00 AM

great question with explanation thanks!!
ETHIOPIA


Thembelani 5/30/2023 2:40:00 AM

does this exam have lab sections?
Anonymous


Shin 9/8/2023 5:31:00 AM

please upload
PHILIPPINES


priti kagwade 7/22/2023 5:17:00 AM

please upload the braindump for .net
UNITED STATES


Robe 9/27/2023 8:15:00 PM

i need this exam 1z0-1107-2. please.
Anonymous