Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 186

While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience sluggish 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?

    Correct Answer: C

    To make Terraform's logging more verbose, you need to set the TF_LOG environment variable. This variable controls the level of verbosity for Terraform's internal logging. The acceptable values for TF_LOG are TRACE, DEBUG, INFO, WARN, or ERROR, with TRACE being the most verbose. Other options like TF_LOG_LEVEL and TF_LOG_FILE do not exist, and TP_LOG_PATH is incorrect. Therefore, setting TF_LOG is the correct answer.

Discussion
depal_dhirOption: C

https://www.terraform.io/internals/debugging

secdaddyOption: C

The question asks for variables plural but configuring a log path to have a file does not make logging more verbose, so only C.

keiffo2Option: C

You can set TF_LOG to one of the log levels TRACE, DEBUG, INFO, WARN or ERROR to change the verbosity of the logs. TRACE is the most verbose and it is the default if TF_LOG is set to something other than a log level name. Type “TF_LOG=TRACE TF_LOG_PATH=./ terraform apply"

keiffo2

Answer C