Question 100
At Dalesworth Cloud Operations, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a Terraform project installs an untested latest provider release and breaks a deprecated resource argument. 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
Review version constraint changes before upgrading provider APIs. This control addresses required providers version constraint because without an appropriate constraint init can select a provider release incompatible with existing resource declarations. The original implementation remedy remains: Specify a compatible required_providers version constraint within the terraform block.
Incorrect Answers
That review protects the control associated with: The installed plugin cache is local build output whereas the lockfile records dependencies. It does not directly prevent the stated recurrence, which concerns: Without an appropriate constraint init can select a provider release incompatible with existing resource declarations. The appropriate guardrail is “Review version constraint changes before upgrading provider APIs”.
This safeguard is for the dependency described by: State associates configured resource instances with the objects Terraform manages. The continuing risk here is determined by: Without an appropriate constraint init can select a provider release incompatible with existing resource declarations. The targeted safeguard is “Review version constraint changes before upgrading provider APIs”.
“Protect essential resources and audit changes to safety lifecycle rules” addresses a different recurring failure: prevent_destroy rejects plans that would destroy a configured protected resource. For the condition in this question, maintain “Review version constraint changes before upgrading provider APIs” because without an appropriate constraint init can select a provider release incompatible with existing resource declarations.