HashiCorpHashiCorp
TA-002-P · Question #198
TA-002-P Question #198: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #198. 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 already set TF_LOG = DEBUG to enable debug log. Now you want to always write the log to the directory you're currently running terraform from. what should you do to achieve this.
Options
- ARun the command export TF_LOG_FILE=./terraform.log.
- BRun the command export TF_LOG_PATH=./terraform.log.
- CRun the command export TF_DEBUG_PATH=./terraform.log.
- DNo explicit action required. Terraform will take care of this as you have enable TF_LOG.
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#Debug logging#Environment variables#Terraform CLI