Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
HashiCorp Certified: Terraform Associate (003) · HashiCorp
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The correct answer is: B. False Explanation: Setting the TF_LOG environment variable to DEBUG enables detailed debugging messages in Terraform, but these messages are printed to standard error (stderr), not to syslog. Terraform does not automatically log messages to syslog. If you want to capture Terraform logs in syslog, you would need to manually redirect the output, for example: sh Copy Edit TF_LOG=DEBUG terraform apply 2>&1 | tee /var/log/terraform.log Alternatively, you can configure external logging mechanisms to capture Terraform's debug output if needed.
B. False. Setting the TF_LOG environment variable to "DEBUG" does not cause debug messages to be logged into syslog. It actually causes the Terraform command-line tool to emit detailed debug output to the console (standard error output, specifically).
B Terraform has detailed logs that you can enable by setting the TF_LOG environment variable to any value. Enabling this setting causes detailed logs to appear on stderr. https://developer.hashicorp.com/terraform/internals/debugging