TA-002-P · Question #342
TA-002-P Question #342: Real Exam Question with Answer & Explanation
The correct answer is B: TF_LOG. To enable verbose logging for troubleshooting Terraform issues, you must set the TF_LOG environment variable. This variable controls the logging level for Terraform and its providers.
Question
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?
Options
- ATF_10G_PATM
- BTF_LOG
- CTF_10G_LEVEL
- DTF.LOG.FUE
Explanation
To enable verbose logging for troubleshooting Terraform issues, you must set the TF_LOG environment variable. This variable controls the logging level for Terraform and its providers.
Common mistakes.
- A.
TF_10G_PATMis not a standard Terraform environment variable for logging. - C.
TF_10G_LEVELis not a standard Terraform environment variable;TF_LOGcontrols the level directly orTF_LOG_PATHcan be used withTF_LOGto specify a file. - D.
TF.LOG.FUEis not a standard Terraform environment variable for logging.
Concept tested. Terraform debugging and logging
Reference. https://developer.hashicorp.com/terraform/cli/config/environment-variables#tf_log
Topics
Community Discussion
No community discussion yet for this question.