nerdexam
HashiCorpHashiCorp

TA-002-P · Question #129

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

The correct answer is A: False. Enabling TF_LOG = DEBUG outputs verbose logging to standard error by default, not to a syslog.log file.

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

Question

If you enable TF_LOG = DEBUG, the log will be stored in syslog.log file in the currect directory.

Options

  • AFalse
  • BTrue

Explanation

Enabling TF_LOG = DEBUG outputs verbose logging to standard error by default, not to a syslog.log file.

Common mistakes.

  • B. This is false; TF_LOG alone only directs output to stderr, and it does not automatically create or write to a file named syslog.log.

Concept tested. Terraform logging configuration

Reference. https://developer.hashicorp.com/terraform/cli/config/environment-variables#tf_log

Topics

#TF_LOG#Logging#Debugging#CLI

Community Discussion

No community discussion yet for this question.

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