HashiCorp TA-002-P Exam (page: 6)
HashiCorp Certified: Terraform Associate
Updated on: 25-Dec-2025

Viewing Page 6 of 91

When should you use the force-unlock command?

  1. You see a status message that you cannot acquire the lock
  2. You have a high priority change
  3. Automatic unlocking failed
  4. Your apply failed due to a state lock

Answer(s): C

Explanation:

Be very careful with this command. If you unlock the state when someone else is holding the lock it could cause multiple writers. Force unlock should only be used to unlock your own lock in the situation where automatic unlocking failed.


Reference:

https://www.terraform.io/language/state/locking https://www.terraform.io/cli/commands/force-unlock



Terraform can import modules from a number of sources – which of the following is not a valid source?

  1. FTP server
  2. GitHub repository
  3. Local path
  4. Terraform Module Registry

Answer(s): A


Reference:

https://www.terraform.io/language/modules/sources



Which of the following is available only in Terraform Enterprise or Cloud workspaces and not in Terraform CLI?

  1. Secure variable storage
  2. Support for multiple cloud providers
  3. Dry runs with terraform plan
  4. Using the workspace as a data source

Answer(s): A


Reference:

https://www.terraform.io/docs/language/providers/configuration.html



terraform validate validates the syntax of Terraform files.

  1. True
  2. False

Answer(s): A

Explanation:

The terraform validate command validates the syntax and arguments of the Terraform configuration files. Reference:
https://www.terraform.io/docs/cli/code/index.html


Reference:

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



You have used Terraform to create an ephemeral development environment in the cloud and are now ready to destroy all the infrastructure described by your Terraform configuration. To be safe, you would like to first see all the infrastructure that will be deleted by Terraform.
Which command should you use to show all of the resources that will be deleted? (Choose two.)

  1. Run terraform plan -destroy.
  2. This is not possible. You can only show resources that will be created.
  3. Run terraform state rm *.
  4. Run terraform destroy and it will first output all the resources that will be deleted before prompting for approval.

Answer(s): A,D


Reference:

https://www.terraform.io/docs/cli/commands/state/rm.html



Viewing Page 6 of 91



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

Gerard 6/29/2023 11:14:00 AM

good so far
Anonymous


Limbo 10/9/2023 3:08:00 AM

this is way too informative
BOTSWANA


Tejasree 8/26/2023 1:46:00 AM

very helpfull
UNITED STATES


Yolostar Again 10/12/2023 3:02:00 PM

q.189 - answers are incorrect.
Anonymous


Shikha Bakra 9/10/2023 5:16:00 PM

awesome job in getting these questions
AUSTRALIA


Kevin 10/20/2023 2:01:00 AM

i cant find aws certified practitioner clf-c01 exam in aws website but i found aws certified practitioner clf-c02 exam. can everyone please verify the difference between the two clf-c01 and clf-c02? thank you
UNITED STATES


D Mario 6/19/2023 10:38:00 PM

grazie mille. i got a satisfactory mark in my exam test today because of this exam dumps. sorry for my english.
ITALY


Bharat Kumar Saraf 10/31/2023 4:36:00 AM

some of the answers are incorrect. need to be reviewed.
HONG KONG


JP 7/13/2023 12:21:00 PM

so far so good
Anonymous


Kiky V 8/8/2023 6:32:00 PM

i am really liking it
Anonymous


trying 7/28/2023 12:37:00 PM

thanks good stuff
UNITED STATES


exampei 10/4/2023 2:40:00 PM

need dump c_tadm_23
Anonymous


Eman Sawalha 6/10/2023 6:18:00 AM

next time i will write a full review
GREECE


johnpaul 11/15/2023 7:55:00 AM

first time using this site
ROMANIA


omiornil@gmail.com 7/25/2023 9:36:00 AM

please sent me oracle 1z0-1105-22 pdf
BANGLADESH


John 8/29/2023 8:59:00 PM

very helpful
Anonymous


Kvana 9/28/2023 12:08:00 PM

good info about oml
UNITED STATES


Checo Lee 7/3/2023 5:45:00 PM

very useful to practice
UNITED STATES


dixitdnoh@gmail.com 8/27/2023 2:58:00 PM

this website is very helpful.
UNITED STATES


Sanjay 8/14/2023 8:07:00 AM

good content
INDIA


Blessious Phiri 8/12/2023 2:19:00 PM

so challenging
Anonymous


PAYAL 10/17/2023 7:14:00 AM

17 should be d ,for morequery its scale out
Anonymous


Karthik 10/12/2023 10:51:00 AM

nice question
Anonymous


Godmode 5/7/2023 10:52:00 AM

yes.
NETHERLANDS


Bhuddhiman 7/30/2023 1:18:00 AM

good mateial
Anonymous


KJ 11/17/2023 3:50:00 PM

good practice exam
Anonymous


sowm 10/29/2023 2:44:00 PM

impressivre qustion
Anonymous


CW 7/6/2023 7:06:00 PM

questions seem helpful
Anonymous


luke 9/26/2023 10:52:00 AM

good content
Anonymous


zazza 6/16/2023 9:08:00 AM

question 21 answer is alerts
ITALY


Abwoch Peter 7/4/2023 3:08:00 AM

am preparing for exam
Anonymous


mohamed 9/12/2023 5:26:00 AM

good one thanks
EGYPT


Mfc 10/23/2023 3:35:00 PM

only got thru 5 questions, need more to evaluate
Anonymous


Whizzle 7/24/2023 6:19:00 AM

q26 should be b
Anonymous