Terraform Associate 004 Practice Test

Terraform Associate 004 Practice Test practice questions, page 5 of 7, with answer review and explanations.

Question 21

You need to determine from which paths Terraform is loading the providers referenced in your *.tf files. How can you enable additional logging to see this information?

  1. Set the environment variable TF_VAR_log=TRACE.
  2. Set the environment variable TF_LOG=TRACE.
  3. Set the environment variable TF_LOG=PATH.
  4. Set verbose logging for each provider in your Terraform configuration.

Question 22

Terraform requires using a different provider for each cloud provider where you want to deploy resources.

  1. True
  2. False

Question 23

Terraform cannot use a newly-defined cloud backend until it has been initialized with terraform init.

  1. True
  2. False

Question 24

You have a list of numbers that represents the number of free CPU cores on each virtual cluster: numcpus = [ 18, 3, 7, 11, 2] What Terraform built-in function would you use to select the largest number from the list?

  1. top(numcpus)
  2. max(numcpus)
  3. ceil(numcpus)
  4. high[numcpus]

Question 25

Which of these is stored in the .terraform directory?

  1. Providers and modules
  2. Lock file
  3. State file
  4. Configuration files