Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 282


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

Show Answer
Correct Answer: B

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged to stderr, not stdout. According to Terraform's documentation, detailed logs appear on stderr when this environment variable is enabled.

Discussion

8 comments
Sign in to comment
meallhourOption: B
Aug 22, 2023

B Because it's stdrr

MohameDaftOption: A
Mar 6, 2024

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged to standard output (stdout) or standard error (stderr)

bora4motion
Aug 23, 2024

chat gpt

suchar
Aug 8, 2023

Correct is B. False - not "stdut" but stderr" https://developer.hashicorp.com/terraform/internals/debugging "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."

AnonymousOption: B
Oct 29, 2023

"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

RajmaneOption: B
Aug 11, 2023

B Because it's stdrr

akm_1010Option: B
Aug 15, 2023

https://developer.hashicorp.com/terraform/internals/debugging

geekosOption: B
Jan 11, 2025

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged, but they are sent to the standard error (stderr) stream by default, not to standard output (stdout). To redirect or persist these logs, you can use additional configurations such as TF_LOG_PATH to specify a file for logging.

57ee09cOption: A
Jan 30, 2025

The correct answer is: ✅ A. True Explanation: Setting the TF_LOG environment variable to DEBUG causes Terraform to log debug-level messages into stdout (standard output). This is helpful for troubleshooting and understanding the inner workings of Terraform during execution.