Question 80
At Cedarhaven Manufacturing IT, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a shared Terraform root unexpectedly provisions production resources in the development account. 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
Test provider alias routing before applying cross-account configurations. This control addresses provider isolation per account because provider instances establish the target API context for resource operations. The original implementation remedy remains: Configure provider aliases with explicit accounts and pass the intended alias to each resource or module.
Incorrect Answers
That review protects the control associated with: Terraform's provider plugin model supports multiple service APIs in the same configuration. It does not directly prevent the stated recurrence, which concerns: Provider instances establish the target API context for resource operations. The appropriate guardrail is “Test provider alias routing before applying cross-account configurations”.
This safeguard is for the dependency described by: Machine-checkable configuration supports repeatable governance before changes. The continuing risk here is determined by: Provider instances establish the target API context for resource operations. The targeted safeguard is “Test provider alias routing before applying cross-account configurations”.
That review protects the control associated with: Ephemeral inputs are not persisted in state or plan and can configure providers in Terraform 1.12. It does not directly prevent the stated recurrence, which concerns: Provider instances establish the target API context for resource operations. The appropriate guardrail is “Test provider alias routing before applying cross-account configurations”.