HashiCorp
TERRAFORM-ASSOCIATE-004 · Question #159
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 Terrafor
The correct answer is B. TF_LOG. To make Terraform's logging more verbose for troubleshooting purposes, you must configure the TF_LOG environment variable. This variable controls the level of logging and can be set to TRACE, DEBUG, INFO, WARN, or ERROR, with TRACE providing the most verbose output.
Submitted by tom_us· Apr 18, 2026Use Terraform CLI
Question
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?
Options
- ATF_LOG_PAIH
- BTF_LOG
- CTF_VAR_log_path
- DTF_VAR_log_level
How the community answered
(27 responses)- A4% (1)
- B89% (24)
- D7% (2)
Explanation
To make Terraform's logging more verbose for troubleshooting purposes, you must configure the TF_LOG environment variable. This variable controls the level of logging and can be set to TRACE, DEBUG, INFO, WARN, or ERROR, with TRACE providing the most verbose output.
Topics
#Terraform CLI#Debugging#Logging#Environment Variables
Community Discussion
No community discussion yet for this question.