Free Terraform Associate Exam Braindumps
HashiCorp Certified: Terraform Associate Questions 71–75 (page: 16)

Updated On: 10-Feb-2026

Your security team scanned some Terraform workspaces and found secrets stored in a plaintext in state files.
How can you protect sensitive data stored in Terraform state files?

  1. Delete the state file every time you run Terraform
  2. Store the state in an encrypted backend
  3. Edit your state file to scrub out the sensitive data
  4. Always store your secrets in a secrets.tfvars file.

Answer(s): B

Explanation:


Reference:

https://www.terraform.io/docs/language/state/sensitive-data.html



In contrast to Terraform Open Source, when working with Terraform Enterprise and Cloud Workspaces, conceptually you could think about them as completely separate working directories.

  1. True
  2. False

Answer(s): A



You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (*.tf files). You need to enable debug messages to find this out.
Which of the following would achieve this?

  1. Set the environment variable TF_LOG=TRACE
  2. Set verbose logging for each provider in your Terraform configuration
  3. Set the environment variable TF_VAR_log=TRACE
  4. Set the environment variable TF_LOG_PATH

Answer(s): A

Explanation:


Reference:

https://www.terraform.io/docs/cli/config/environment-variables.html



How is terraform import run?

  1. As a part of terraform init
  2. As a part of terraform plan
  3. As a part of terraform refresh
  4. By an explicit call
  5. All of the above

Answer(s): D



You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully.
What will happen if you delete the VM using the cloud provider console, and run terraform apply again without changing any Terraform code?

  1. Terraform will remove the VM from state file
  2. Terraform will report an error
  3. Terraform will not make any changes
  4. Terraform will recreate the VM

Answer(s): D



Viewing page 16 of 71
Viewing questions 76 - 80 out of 356 questions


Post your Comments and Discuss HashiCorp Terraform Associate exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!