Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.

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

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into syslog.

Explanation:
TF_LOG controls how verbose Terraform’s internal logging is, not where the logs go. When you set TF_LOG to DEBUG, Terraform outputs detailed messages to the command’s standard error (stderr). It does not send those messages to syslog by default. If you want to capture logs in a file, you can set TF_LOG_PATH to a file path, or redirect stdout/stderr as needed. The -log=DEBUG flag operates at runtime for verbosity in the console, but it doesn’t switch the sink to syslog either. So the statement is false.

TF_LOG controls how verbose Terraform’s internal logging is, not where the logs go. When you set TF_LOG to DEBUG, Terraform outputs detailed messages to the command’s standard error (stderr). It does not send those messages to syslog by default. If you want to capture logs in a file, you can set TF_LOG_PATH to a file path, or redirect stdout/stderr as needed. The -log=DEBUG flag operates at runtime for verbosity in the console, but it doesn’t switch the sink to syslog either. So the statement is false.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy