HashiCorp TA-002-P Exam
HashiCorp Certified: Terraform Associate (Page 12 )

Updated On: 7-Feb-2026

Where in your Terraform configuration do you specify a state backend?

  1. The terraform block
  2. The resource block
  3. The provider block
  4. The datasource block

Answer(s): A

Explanation:

Backends are configured with a nested backend block within the top-level terraform block.


Reference:

https://www.terraform.io/docs/language/settings/backends/configuration.html
https://www.terraform.io/language/settings/backends/configuration#using-a-backend-block



In Terraform 0.13 and above, outside of the required_providers block, Terraform configurations always refer to providers by their local names.

  1. True
  2. False

Answer(s): A

Explanation:

Outside of the required_providers block, Terraform configurations always refer to providers by their local names.


Reference:

https://www.terraform.io/docs/language/providers/requirements.html
https://www.terraform.io/language/providers/requirements#local-names



What command should you run to display all workspaces for the current configuration?

  1. terraform workspace
  2. terraform workspace show
  3. terraform workspace list
  4. terraform show workspace

Answer(s): C

Explanation:

terraform workspace list
The command will list all existing workspaces.


Reference:

https://www.terraform.io/docs/cli/commands/workspace/list.html



Terraform providers are always installed from the Internet.

  1. True
  2. False

Answer(s): B

Explanation:

Terraform configurations must declare which providers they require, so that Terraform can install and use them.


Reference:

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



Which of these is the best practice to protect sensitive values in state files?

  1. Blockchain
  2. Secure Sockets Layer (SSL)
  3. Enhanced remote backends
  4. Signed Terraform providers

Answer(s): C

Explanation:

Use of remote backends and especially the availability of Terraform Cloud, there are now a variety of backends that will encrypt state at rest and will not store the state in cleartext on machines running.


Reference:

https://www.terraform.io/docs/extend/best-practices/sensitive-state.html



Viewing page 12 of 91
Viewing questions 56 - 60 out of 449 questions



Post your Comments and Discuss HashiCorp TA-002-P exam prep with other Community members:

Join the TA-002-P Discussion