Rationale for Correct Answer: Terraform debugging is enabled through the TF_LOG environment variable. For example, TF_LOG=DEBUG enables debug-level logging, while TRACE provides even more detail.
Analysis of Incorrect Options (Distractors):
A: Debug logging is not normally enabled through a terraform plan debug flag.
C: The Terraform CLI configuration file is used for CLI behavior such as provider installation and credentials-related settings, not for enabling standard TF_LOG debugging.
D: Backend settings determine state-storage behavior and are unrelated to enabling Terraform diagnostic logging.
Key Concept: Terraform CLI troubleshooting and logging through environment variables.
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