Free Terraform Associate Exam Braindumps (page: 6)

Page 5 of 113

If a module uses a local variable, 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


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


Reference:

https://www.terraform.io/language/functions



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:

You should create the equivalent configuration first, and then run import to load it on the state file.






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

Terraform Associate Discussions & Posts