Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 326 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 326
Topic #: 1
[All Terraform Associate Questions]

You can configure Terraform to log to a file using the TF_LOG environment variable.

  • A. True
  • B. False
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
J_boy
Highly Voted 9 months ago
Selected Answer: B
TF_LOG_PATH is used instead https://developer.hashicorp.com/terraform/internals/debugging
upvoted 5 times
...
kyochan
Most Recent 7 months, 1 week ago
Selected Answer: B
You can configure Terraform to log to a file by setting the TF_LOG_PATH environment variable. When this variable is set, Terraform will write its log output to the specified file.
upvoted 3 times
...
6957dbd
8 months, 2 weeks ago
This is a badly worded question... 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. To persist logged output you can set TF_LOG_PATH in order to force the log to always be appended to a specific file when logging is enabled. Note that even when TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled. So, TF_LOG_PATH sets the directory itself, but it will not output anything unless TF_LOG is set.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...