nerdexam
HashiCorpHashiCorp

TA-002-P · Question #246

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

Sign in or unlock TA-002-P to reveal the answer and full explanation for question #246. The question stem and answer options stay visible for context.

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

Question

You have written a terraform IaC script which was working till yesterday , but is giving some vague error from today , which you are unable to understand . You want more detailed logs that could potentially help you troubleshoot the issue , and understand the root cause. What can you do to enable this setting? Please note , you are using terraform OSS.

Options

  • ATerraform OSS can push all its logs to a syslog endpoint. As such, you have to set up the
  • BDetailed logs are not available in terraform OSS, except the crash message. You need to
  • CEnable the TF_LOG_PATH to the log sink file location, and logging output will
  • DEnable TF_LOG to the log level DEBUG, and then set TF_LOG_PATH to the log sink file

Unlock TA-002-P to see the answer

You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Terraform logging#Troubleshooting#Environment variables#TF_LOG#TF_LOG_PATH
Full TA-002-P PracticeBrowse All TA-002-P Questions