If a module uses a local variable, you can expose that value with a terraform output.
Answer(s): A
Output values are like function return values.
https://www.terraform.io/docs/language/values/locals.htmlhttps://www.terraform.io/docs/language/values/outputs.html
You should store secret data in the same version control repository as your Terraform configuration.
Answer(s): B
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?
Answer(s): C
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.)
Answer(s): B,C
You should create the equivalent configuration first, and then run import to load it on the state file.
Post your Comments and Discuss HashiCorp TA-002-P exam prep with other Community members:
We’re offering these study questions to support your success. The least you can do? Drop a useful comment about each question. Help others. Build the community.