Free Terraform Associate Exam Braindumps (page: 6)

Page 5 of 88

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






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

Terraform Associate Exam Discussions & Posts