Question 1080
At Invermere Data Platforms, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a distributed team uses separate local terraform.tfstate files and cannot safely collaborate on its shared network stack. 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
Use workspace access controls and organization ownership for shared state. This control addresses hcp terraform remote state because hCP Terraform workspaces store state centrally and coordinate infrastructure runs. The original implementation remedy remains: Use an appropriate HCP Terraform workspace as the managed remote state boundary.
Incorrect Answers
“Restrict apply rights and require plan review in governed workspaces” addresses a different recurring failure: HCP Terraform provides remote run stages for planning reviewing and applying infrastructure changes. For the condition in this question, maintain “Use workspace access controls and organization ownership for shared state” because hCP Terraform workspaces store state centrally and coordinate infrastructure runs.
That review protects the control associated with: HCP Terraform team permissions can distinguish reading plans from making infrastructure changes. It does not directly prevent the stated recurrence, which concerns: HCP Terraform workspaces store state centrally and coordinate infrastructure runs. The appropriate guardrail is “Use workspace access controls and organization ownership for shared state”.
This safeguard is for the dependency described by: Terraform may convert compatible primitive values but a typed module should define the intended representation. The continuing risk here is determined by: HCP Terraform workspaces store state centrally and coordinate infrastructure runs. The targeted safeguard is “Use workspace access controls and organization ownership for shared state”.