Question 240
At Highmeadow Manufacturing IT, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: an engineer moves a stateful root to a different machine and assumes the local state automatically follows. 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 team-approved remote backends for collaborative production infrastructure. This control addresses backend determines where state is stored because the default local backend stores state on disk rather than offering shared persistent team storage. The original implementation remedy remains: Configure and initialize an appropriate shared backend for the team.
Incorrect Answers
This safeguard is for the dependency described by: Provider refresh and state comparison can reveal external modifications to tracked resources. The continuing risk here is determined by: The default local backend stores state on disk rather than offering shared persistent team storage. The targeted safeguard is “Use team-approved remote backends for collaborative production infrastructure”.
“Lint provider meta-argument references in multi-region code” addresses a different recurring failure: The provider meta-argument takes a provider configuration reference, not an arbitrary string label. For the condition in this question, maintain “Use team-approved remote backends for collaborative production infrastructure” because the default local backend stores state on disk rather than offering shared persistent team storage.
This safeguard is for the dependency described by: Terraform does not automatically bind arbitrary shell names to declared input variables. The continuing risk here is determined by: The default local backend stores state on disk rather than offering shared persistent team storage. The targeted safeguard is “Use team-approved remote backends for collaborative production infrastructure”.