Question 1040
At Harborwood Manufacturing IT, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a manual import command completes but the operator cannot tell whether it linked the right cloud object. 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 imported mappings before first full apply. This control addresses state show import verification because state inspection confirms which remote object Terraform now tracks. The original implementation remedy remains: Inspect the target address with terraform state show and compare the remote ID.
Incorrect Answers
This safeguard is for the dependency described by: State list exposes current tracked addresses after successful refactoring. The continuing risk here is determined by: State inspection confirms which remote object Terraform now tracks. The targeted safeguard is “Verify imported mappings before first full apply”.
“Reconcile imported resource arguments to observed reality before apply” addresses a different recurring failure: Import primarily establishes ownership mapping and does not guarantee complete desired configuration. For the condition in this question, maintain “Verify imported mappings before first full apply” because state inspection confirms which remote object Terraform now tracks.
That review protects the control associated with: Terraform delegates service-specific behavior to provider versions that can change independently. It does not directly prevent the stated recurrence, which concerns: State inspection confirms which remote object Terraform now tracks. The appropriate guardrail is “Verify imported mappings before first full apply”.