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 73 discussion

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

You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (*.tf files). You need to enable debug messages to find this out.
Which of the following would achieve this?

  • A. Set the environment variable TF_LOG=TRACE
  • B. Set verbose logging for each provider in your Terraform configuration
  • C. Set the environment variable TF_VAR_log=TRACE
  • D. Set the environment variable TF_LOG_PATH
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
Eltooth
Highly Voted 2 years, 4 months ago
Selected Answer: A
A is correct answer. TF_LOG=TRACE Although this will only output to stderr and if you need to review log file you will need to include TF_LOG_PATH=pathtofile https://www.terraform.io/internals/debugging
upvoted 12 times
...
yufei
Highly Voted 2 years, 5 months ago
A. TRACE is the most verbose option available and should show what the user is looking for. TRACE will show TRACE, DEBUG, INFO, WARN and ERROR messages in the output.
upvoted 6 times
...
Power123
Most Recent 1 year, 7 months ago
TF_LOG=TRACE is correct. Ans A
upvoted 1 times
...
chimons
1 year, 11 months ago
Selected Answer: A
A. Set the environment variable TF_LOG=TRACE To enable debug messages in Terraform, you can set the environment variable TF_LOG to the value TRACE. This will cause Terraform to print detailed debug information, including the paths from which it is loading providers.
upvoted 3 times
...
Ahmad_Terraform
2 years, 4 months ago
Set the environment variable TF_LOG=TRACE
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 ...