Free HashiCorp TA-002-P Exam Actual Questions

The questions for TA-002-P were last updated On Jan 15, 2025

Question No. 1

Which of the following statements about Terraform modules is not true?

Show Answer Hide Answer
Correct Answer: C

This is not true, as modules can be either public or private, depending on your needs and preferences. You can use the Terraform Registry to publish and consume public modules, or use Terraform Cloud or Terraform Enterprise to host and manage private modules.


Question No. 2

When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?

Show Answer Hide Answer
Correct Answer: C

You need to write Terraform configuration files for the existing infrastructure that you want to import into Terraform, otherwise Terraform will not know how to manage it. The configuration files should match the type and name of the resources that you want to import.


Question No. 3

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?

Show Answer Hide Answer
Question No. 4

The_________determines how Terraform creates, updates, or delete resources.

Show Answer Hide Answer
Correct Answer: C

Question No. 5

How does Terraform manage most dependencies between resources?

Show Answer Hide Answer
Correct Answer: A

This is how Terraform manages most dependencies between resources, by using the references between them in the configuration files. For example, if resource A depends on resource B, Terraform will create resource B first and then pass its attributes to resource A.