nerdexam
HashiCorpHashiCorp

TA-002-P · Question #122

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

The correct answer is B: True. TF_LOG_PATH specifies where the log should persist its output to. Note that even when TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled. For example, to always write the log to the directory you're currently running terraform from: export TF_LOG_PATH=.

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

Question

When TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled.

Options

  • AFalse
  • BTrue

Explanation

TF_LOG_PATH specifies where the log should persist its output to. Note that even when TF_LOG_PATH is set, TF_LOG must be set in order for any logging to be enabled. For example, to always write the log to the directory you're currently running terraform from: export TF_LOG_PATH=./terraform.log export TF_LOG=TRACE

Topics

#Terraform CLI#Logging#Environment variables

Community Discussion

No community discussion yet for this question.

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