nerdexam
HashiCorp

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

Submitted by packet_pusher· Apr 18, 2026Use Terraform CLI

Question

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 following would achieve this?

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)
  • A
    6% (1)
  • B
    88% (14)
  • C
    6% (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

#Terraform logging#Debugging#Environment variables#Provider loading

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice