nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #77

You can configure Terraform to log to a file using the TF_LOG environment variable.

The correct answer is A. True. You can configure Terraform to log to a file using the TF_LOG environment variable. This variable can be set to one of the log levels: TRACE, DEBUG, INFO, WARN or ERROR. You can also use the TF_LOG_PATH environment variable to specify a custom log file location.

Submitted by neha2k· Apr 18, 2026Use Terraform CLI

Question

You can configure Terraform to log to a file using the TF_LOG environment variable.

Options

  • ATrue
  • BFalse

How the community answered

(64 responses)
  • A
    92% (59)
  • B
    8% (5)

Explanation

You can configure Terraform to log to a file using the TF_LOG environment variable. This variable can be set to one of the log levels: TRACE, DEBUG, INFO, WARN or ERROR. You can also use the TF_LOG_PATH environment variable to specify a custom log file location.

Topics

#Terraform logging#TF_LOG#Environment variables#Debugging

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice