Question 1060
At Invermere Cloud Operations, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a team enables TRACE logging in a public CI job to debug provider credentials. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. Which operational control addresses the risk long term?
Explanation
Correct Answer
Limit verbose logs to controlled support sessions and sanitize artifacts. This control addresses trace log sensitive data risk because verbose Terraform and provider logs can disclose sensitive requests or infrastructure identifiers. The original implementation remedy remains: Reproduce at an approved secure verbosity and treat trace output as potentially secret-bearing.
Incorrect Answers
“Remove verbose logging after diagnosing the incident” addresses a different recurring failure: Terraform supports configurable internal diagnostic log verbosity through environment variables. For the condition in this question, maintain “Limit verbose logs to controlled support sessions and sanitize artifacts” because verbose Terraform and provider logs can disclose sensitive requests or infrastructure identifiers.
This safeguard is for the dependency described by: The state list subcommand enumerates Terraform-managed addresses without printing all attributes. The continuing risk here is determined by: Verbose Terraform and provider logs can disclose sensitive requests or infrastructure identifiers. The targeted safeguard is “Limit verbose logs to controlled support sessions and sanitize artifacts”.
“Rotate and scope provider credentials using managed secret workflows” addresses a different recurring failure: Vault can issue time-bounded credentials instead of long-lived shared static secrets. For the condition in this question, maintain “Limit verbose logs to controlled support sessions and sanitize artifacts” because verbose Terraform and provider logs can disclose sensitive requests or infrastructure identifiers.