Detailed Explanation:
Rationale for Correct Answer: Terraform logging is enabled by setting the TF_LOG environment variable. Common values include TRACE, DEBUG, INFO, WARN, and ERROR. For example: export TF_LOG=DEBUG.
Analysis of Incorrect Options (Distractors):
A. Set the log level command-line flag. Incorrect. Terraform does not use a general CLI flag for verbose log level control.
C. Set the log level in your terraform block. Incorrect. Logging is not configured in the Terraform configuration block.
Key Concept: Terraform troubleshooting logs are controlled through environment variables.
[Reference: Terraform Objective Domain: Understand Terraform Basics and CLI, ====================, , ]
Submit