To increase Terraform's logging verbosity for debugging, which environment variable should be configured?

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

To increase Terraform's logging verbosity for debugging, which environment variable should be configured?

Explanation:
TF_LOG is the variable Terraform uses to control its logging level. By setting TF_LOG to values like DEBUG or TRACE, you increase verbosity to help diagnose issues during debugging. If you also want logs to go to a file, you can pair it with TF_LOG_PATH to specify the log file location. The other options don’t control Terraform’s log level (they’re not standard Terraform logging controls) or are just variable placeholders, so they won’t enable verbose Terraform output. For example: export TF_LOG=DEBUG and optionally export TF_LOG_PATH=/tmp/terraform.log.

TF_LOG is the variable Terraform uses to control its logging level. By setting TF_LOG to values like DEBUG or TRACE, you increase verbosity to help diagnose issues during debugging. If you also want logs to go to a file, you can pair it with TF_LOG_PATH to specify the log file location. The other options don’t control Terraform’s log level (they’re not standard Terraform logging controls) or are just variable placeholders, so they won’t enable verbose Terraform output. For example: export TF_LOG=DEBUG and optionally export TF_LOG_PATH=/tmp/terraform.log.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy