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?
Set the environment variable TF_VAR_log=TRACE.
Set the environment variable TF_LOG=TRACE.
Set the environment variable TF_LOG=PATH.
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.
True
False
Question 23
Terraform cannot use a newly-defined cloud backend until it has been initialized with terraform init.
True
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?
top(numcpus)
max(numcpus)
ceil(numcpus)
high[numcpus]
Question 25
Which of these is stored in the .terraform directory?