Question 280
At Ironwood Data Platforms, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a new monitoring data source produces an unknown provider error in a previously initialized root. 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
Rerun init when dependency requirements change. This control addresses provider installation via init because terraform initialization installs newly required provider dependencies. The original implementation remedy remains: Add its required provider declaration and rerun terraform init.
Incorrect Answers
“Initialize clean CI workspaces before planning” addresses a different recurring failure: Initialization prepares the backend providers and child modules needed by Terraform. For the condition in this question, maintain “Rerun init when dependency requirements change” because terraform initialization installs newly required provider dependencies.
That review protects the control associated with: The check mode detects style differences without rewriting files. It does not directly prevent the stated recurrence, which concerns: Terraform initialization installs newly required provider dependencies. The appropriate guardrail is “Rerun init when dependency requirements change”.
This safeguard is for the dependency described by: Organization run histories provide attributable actions absent from untracked shared local sessions. The continuing risk here is determined by: Terraform initialization installs newly required provider dependencies. The targeted safeguard is “Rerun init when dependency requirements change”.