Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 260


While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging. Which environment variables must be configured to make Terraform’s logging more verbose?

Show Answer
Correct Answer: C

To make Terraform's logging more verbose, you need to set the TF_LOG environment variable. This variable controls the verbosity of Terraform logs and can be set to TRACE, DEBUG, INFO, WARN, or ERROR.

Discussion

1 comment
Sign in to comment
DevoteamAnalytixOption: C
Jun 26, 2024

"You can set TF_LOG to one of the log levels (in order of decreasing verbosity) TRACE, DEBUG, INFO, WARN or ERROR to change the verbosity of the logs." https://developer.hashicorp.com/terraform/internals/debugging