To enable Terraform to show which paths provider binaries are loaded from, which setting enables debug messages?

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 enable Terraform to show which paths provider binaries are loaded from, which setting enables debug messages?

Explanation:
Enable debug messages by setting the TF_LOG environment variable to TRACE. This level is the most verbose and will show detailed runtime activity, including which provider binaries are loaded and from which paths. The other options don’t enable this level of logging: there isn’t per-provider verbose logging in config, TF_VAR_log is just a variable name, and TF_LOG_PATH only directs where logs go (you still need TF_LOG=TRACE for the messages to be produced). If you want to also write logs to a file, you can pair TF_LOG=TRACE with TF_LOG_PATH=/path/to/logfile.

Enable debug messages by setting the TF_LOG environment variable to TRACE. This level is the most verbose and will show detailed runtime activity, including which provider binaries are loaded and from which paths. The other options don’t enable this level of logging: there isn’t per-provider verbose logging in config, TF_VAR_log is just a variable name, and TF_LOG_PATH only directs where logs go (you still need TF_LOG=TRACE for the messages to be produced). If you want to also write logs to a file, you can pair TF_LOG=TRACE with TF_LOG_PATH=/path/to/logfile.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy