Terraform Associate Practice Test

Terraform Associate Practice Test practice questions, page 4 of 15, with answer review and explanations.

Question 16

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

Question 17

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

  1. True
  2. False

Question 18

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

  1. True
  2. False

Question 19

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

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

Question 20

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