Question 1020
At Greenhollow Retail Infrastructure, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a manually created security group has permissive ingress but the Terraform block declares strict rules and the first post-import plan proposes removal. 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
Treat adoption as a change review not a harmless inventory import. This control addresses post-import discrepancy review because adoption into state does not imply the imported object's live settings match desired configuration. The original implementation remedy remains: Review the differences and approve the intended secure reconciliation before apply.
Incorrect Answers
This safeguard is for the dependency described by: A Terraform resource instance address cannot represent two distinct remote managed objects simultaneously. The continuing risk here is determined by: Adoption into state does not imply the imported object's live settings match desired configuration. The targeted safeguard is “Treat adoption as a change review not a harmless inventory import”.
“Record full state addresses in operational runbooks” addresses a different recurring failure: Terraform state addresses include module paths and instance keys where applicable. For the condition in this question, maintain “Treat adoption as a change review not a harmless inventory import” because adoption into state does not imply the imported object's live settings match desired configuration.
That review protects the control associated with: Terraform expressions can select a configuration value from a condition. It does not directly prevent the stated recurrence, which concerns: Adoption into state does not imply the imported object's live settings match desired configuration. The appropriate guardrail is “Treat adoption as a change review not a harmless inventory import”.