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

What information does the public Terraform Module Registry automatically expose about published modules?

  1. Required input variables
  2. Optional inputs variables and default values
  3. Outputs
  4. All of the above
  5. None of the above

Answer(s): D

Explanation:


Reference:

https://www.terraform.io/docs/registry/modules/publish.html



If a module uses a local values, you can expose that value with a terraform output.

  1. True
  2. False

Answer(s): A

Explanation:

Output values are like function return values.


Reference:

https://www.terraform.io/docs/language/values/locals.html
https://www.terraform.io/docs/language/values/outputs.html



You should store secret data in the same version control repository as your Terraform configuration.

  1. True
  2. False

Answer(s): B

Explanation:


Reference:

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



Which of the following is not a valid string function in Terraform?

  1. split
  2. join
  3. slice
  4. chomp

Answer(s): C

Explanation:


Reference:

https://www.terraform.io/docs/language/functions/chomp.html



You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with
Terraform and want to manage these VMs using Terraform instead.
What are the two things you must do to achieve this? (Choose two.)

  1. Provision new VMs using Terraform with the same VM names
  2. Use the terraform import command for the existing VMs
  3. Write Terraform configuration for the existing VMs
  4. Run the terraform import-gcp command

Answer(s): B,C

Explanation:

The terraform import command is used to import existing infrastructure.
Import existing Google Cloud resources into Terraform with Terraformer.


Reference:

https://www.terraform.io/docs/cli/import/usage.html
https://cloud.google.com/docs/terraform



Viewing Page 4 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