HashiCorp Terraform Associate Exam (page: 11)
HashiCorp Certified: Terraform Associate
Updated on: 25-Dec-2025

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



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



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 11 of 71



Share your comments for HashiCorp Terraform Associate exam with other users:

DN 9/4/2023 11:19:00 PM

question 14 - run terraform import: this is the recommended best practice for bringing manually created or destroyed resources under terraform management. you use terraform import to associate an existing resource with a terraform resource configuration. this ensures that terraform is aware of the resource, and you can subsequently manage it with terraform.
Anonymous


YK 12/11/2023 1:10:00 AM

good one nice
JAPAN


Mn8300 11/9/2023 8:53:00 AM

nice questions
Anonymous