TERRAFORM-ASSOCIATE-004 · Question #55
You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out. Which of the fol
The correct answer is B. Set the environment variable TF_LOG_TRACE. Terraform uses the TF_LOG environment variable to control logging verbosity. Setting it to TRACE (the highest verbosity level) outputs detailed debug messages including which filesystem paths Terraform searches when loading providers. Option C (TF_LOG_PATH) only sets where log ou
Question
Options
- ASet verbose for each provider in your Terraform configuration
- BSet the environment variable TF_LOG_TRACE
- CSet the environment variable TF_LOG_PATH
- DSet the environment variable TF_log_TRACE
How the community answered
(16 responses)- A6% (1)
- B88% (14)
- C6% (1)
Explanation
Terraform uses the TF_LOG environment variable to control logging verbosity. Setting it to TRACE (the highest verbosity level) outputs detailed debug messages including which filesystem paths Terraform searches when loading providers. Option C (TF_LOG_PATH) only sets where log output is written, not the log level. Option D is incorrect because Terraform environment variables are case-sensitive - TF_log_TRACE would not be recognized. The correct usage is TF_LOG=TRACE.
Topics
Community Discussion
No community discussion yet for this question.