nerdexam
HashiCorpHashiCorp

TA-002-P · Question #125

TA-002-P Question #125: Real Exam Question with Answer & Explanation

The correct answer is C: TF_LOG. Terraform has detailed logs that can be enabled by setting the TF_LOG environment variable to any value. This will cause detailed logs to appear on stderr. 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

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

Terraform has detailed logs which can be enabled by setting the _________ environmental variable.

Options

  • ATF_TRACE
  • BTF_DEBUG
  • CTF_LOG
  • DTF_INFO

Explanation

Terraform has detailed logs that can be enabled by setting the TF_LOG environment variable to any value. This will cause detailed logs to appear on stderr. 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

Topics

#logging#environment variables#Terraform CLI#troubleshooting

Community Discussion

No community discussion yet for this question.

Full TA-002-P PracticeBrowse All TA-002-P Questions