Free HashiCorp TA-002-P Exam Actual Questions

The questions for TA-002-P were last updated On Nov 7, 2024

Question No. 1

Which command must you first run before performing further Terraform operations in a working directory?

Show Answer Hide Answer
Correct Answer: D

terraform init is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control. It initializes a working directory containing Terraform configuration files and downloads any required providers and modules. The other commands are used for different purposes, such as importing existing resources, switching between workspaces, generating execution plans, etc.


Question No. 2

What feature stops multiple users from operating on the Terraform state at the same time?

Show Answer Hide Answer
Question No. 3

What does the default "local" Terraform backend store?

Show Answer Hide Answer
Question No. 4

Which backend does the Terraform CU use by default?

Show Answer Hide Answer
Correct Answer: E

This is the backend that the Terraform CLI uses by default, unless you specify a different backend in your configuration. The local backend stores the state file in a local file namedterraform.tfstate, which can be used to track and manage the state of your infrastructure.


Question No. 5

Where does the Terraform local backend store its state?

Show Answer Hide Answer
Correct Answer: C