Rationale for Correct Answer: Terraform supports detailed logging through the TF_LOG environment variable. Setting TF_LOG=TRACE enables the most verbose logging level, which includes detailed information about provider installation, plugin loading paths, and execution steps. This is the correct way to debug how Terraform is resolving and loading providers.
Analysis of Incorrect Options (Distractors):
A. TF_VAR_log=TRACE Incorrect because TF_VAR_ is used to pass input variables into Terraform, not to control logging.
B. TF_LOG_PATH Incorrect because this variable only specifies where logs are written, not the logging level itself. It must be used in combination with TF_LOG.
D. Set verbose logging for each provider in your Terraform configuration. Incorrect because Terraform does not support configuring provider-level logging directly in .tf files; logging is controlled globally via environment variables.
Key Concept: Using TF_LOG environment variable to enable Terraform debug and trace logging.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit