HashiCorp Certified: Terraform Associate — Question 167
While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging. Which environment variables must be configured to make Terraform’s logging more verbose?
Answer options
- A. TF_LOG_PATH
- B. TF_VAR_log_level
- C. TF_LOG
- D. TF_VAR_log_path
Correct answer: C
Explanation
The correct answer is C (TF_LOG) because it directly controls the verbosity level of Terraform's logs. Options A and D are related but do not enable verbose logging themselves, while B (TF_VAR_log_level) is not a valid Terraform environment variable for logging.