Question 920
At Duneland Data Platforms, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a Terraform team assumes every remote object backend implements safe concurrent locking by default. 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
Verify locking capabilities when selecting or upgrading backends. This control addresses backend locking support varies because different backend implementations offer different locking mechanisms or none. The original implementation remedy remains: Review the chosen backend's documented locking support before collaborative use.
Incorrect Answers
That review protects the control associated with: A state lock protects against concurrent state writers that could corrupt mappings. It does not directly prevent the stated recurrence, which concerns: Different backend implementations offer different locking mechanisms or none. The appropriate guardrail is “Verify locking capabilities when selecting or upgrading backends”.
This safeguard is for the dependency described by: Changing a backend does not automatically guarantee the previous local snapshot has been transferred. The continuing risk here is determined by: Different backend implementations offer different locking mechanisms or none. The targeted safeguard is “Verify locking capabilities when selecting or upgrading backends”.
“Test working-directory settings when reorganizing repositories” addresses a different recurring failure: An incorrect working directory can cause runs to evaluate the wrong or empty Terraform root. For the condition in this question, maintain “Verify locking capabilities when selecting or upgrading backends” because different backend implementations offer different locking mechanisms or none.