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

Updated On: 7-Feb-2026

All standard backend types support state storage, locking, and remote operations like plan. apply and destroy.

  1. True
  2. False

Answer(s): B

Explanation:

"Some of these backends act like plain remote disks for state files, while others support locking the state while operations are being performed. This helps prevent conflicts and inconsistencies. The built-in backends listed are the only backends. You cannot load additional backends as plugins."


Reference:

https://www.terraform.io/language/settings/backends/configuration



How can terraform plan aid in the development process?

  1. Validates your expectations against the execution plan without permanently modifying state
  2. Initializes your working directory containing your Terraform configuration files
  3. Formats your Terraform configuration files
  4. Reconciles Terraform’s state against deployed resources and permanently modifies state using the current status of deployed resources

Answer(s): A

Explanation:

"The terraform plan command creates an execution plan, which lets you preview the changes that Terraform plans to make to your infrastructure. By default, when Terraform creates a plan it:
Reads the current state of any already-existing remote objects to make sure that the Terraform state is up-to-date.
Compares the current configuration to the prior state and noting any differences.
Proposes a set of change actions that should, if applied, make the remote objects match the configuration."
"The plan command alone will not actually carry out the proposed changes, and so you can use this command to check whether the proposed changes match what you expected before you apply the changes or share your changes with your team for broader review.
If Terraform detects that no changes are needed to resource instances or to root module output values, terraform plan will report that no actions need to be taken."


Reference:

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



You would like to reuse the same Terraform configuration for your development and production environments with a different state file for each.
Which command would you use?

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

Answer(s): B


Reference:

https://www.terraform.io/language/state/workspaces#when-to-use-multiple-workspaces



What is the name assigned by Terraform to reference this resource?

  1. compute_instance
  2. main
  3. google
  4. test

Answer(s): B



You’re building a CI/CD (continuous integration/ continuous delivery) pipeline and need to inject sensitive variables into your Terraform run.
How can you do this safely?

  1. Pass variables to Terraform with a –var flag
  2. Copy the sensitive variables into your Terraform code
  3. Store the sensitive variables in a secure_vars.tf file
  4. Store the sensitive variables as plain text in a source code repository

Answer(s): A


Reference:

https://blog.gruntwork.io/a-comprehensive-guide-to-managing-secrets-in-your-terraform-code- 1d586955ace1






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

Join the TA-002-P Discussion