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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
kyochan
2 weeks, 2 days 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 1 times
...
6957dbd
1 month, 3 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
...
J_boy
2 months, 1 week ago
Selected Answer: B
TF_LOG_PATH is used instead https://developer.hashicorp.com/terraform/internals/debugging
upvoted 3 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 ...