Question 1180
At Meadowcrest Retail Infrastructure, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a production team adopts HCP Terraform while its existing local state contains dozens of managed resources. 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
Back up and verify state before organizational backend migrations. This control addresses migrate local state to hcp terraform because switching state storage without migration can cause Terraform to propose duplicate infrastructure. The original implementation remedy remains: Follow the supported state migration workflow and verify the HCP workspace receives the mapping.
Incorrect Answers
That review protects the control associated with: Workspace access and private module retrieval can have distinct authorization requirements. It does not directly prevent the stated recurrence, which concerns: Switching state storage without migration can cause Terraform to propose duplicate infrastructure. The appropriate guardrail is “Back up and verify state before organizational backend migrations”.
This safeguard is for the dependency described by: A private module registry provides a centralized distribution and versioning interface for teams. The continuing risk here is determined by: Switching state storage without migration can cause Terraform to propose duplicate infrastructure. The targeted safeguard is “Back up and verify state before organizational backend migrations”.
“Define shared-resource lookup contracts and key ownership” addresses a different recurring failure: Existing shared encryption infrastructure should not be duplicated by consumers needing only its identifier. For the condition in this question, maintain “Back up and verify state before organizational backend migrations” because switching state storage without migration can cause Terraform to propose duplicate infrastructure.