Question 640
A Terraform associate evaluates: An incident runbook needs a temporary way to increase Terraform log detail without editing infrastructure. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: An incident runbook needs a temporary way to increase Terraform log detail without editing infrastructure. The directly relevant Terraform response is: Set TF_LOG to an appropriate supported level such as DEBUG or TRACE only while investigating, then disable it afterward. This addresses the related failure mode: Verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. Validate the result by checking: The failed operation produces relevant diagnostic output and normal logging is restored after troubleshooting. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: An incident runbook needs a temporary way to increase Terraform log detail without editing infrastructure. The acceptance evidence is: The failed operation produces relevant diagnostic output and normal logging is restored after troubleshooting. It verifies the corrective approach (Set TF_LOG to an appropriate supported level such as DEBUG or TRACE only while investigating, then disable it afterward.) and controls the risk: Verbose Terraform logs may include sensitive configuration or provider data and can become excessively large. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
Set TF_LOG together with TF_LOG_PATH to capture troubleshooting output in a protected file and remove it after authorized review. This is relevant to TF_LOG_PATH debug log file handling (official objective 7c). Its distinct failure risk is that logs containing resource attributes and credentials should not be committed to Git or left in public CI artifacts. The present question tests TF_LOG for diagnostic visibility, which this measure alone does not establish.
A declared resource that matches a preexisting object is not automatically tracked unless imported or otherwise bound. That is the exact risk associated with Import block declarative adoption (official objective 7a), not the required TF_LOG for diagnostic visibility outcome.
The listed address matches the intended resource and show presents its recorded attributes for review. This does not provide the required TF_LOG for diagnostic visibility action-and-evidence pair.