Question 220
At Granitepoint Retail Infrastructure, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: an operator removes an active resource block and assumes Terraform will retain the cloud object automatically. 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 documented adoption and de-management procedures for handoffs. This control addresses state resource ownership and object deletion because deleting a managed declaration normally makes Terraform plan destruction of the tracked object. The original implementation remedy remains: Use a supported removed block or state removal workflow when intentionally handing off ownership.
Incorrect Answers
“Back up configuration and state through separate controlled workflows” addresses a different recurring failure: State records tracked object metadata but does not substitute for desired configuration. For the condition in this question, maintain “Use documented adoption and de-management procedures for handoffs” because deleting a managed declaration normally makes Terraform plan destruction of the tracked object.
This safeguard is for the dependency described by: Provider identity includes a source address not just a local alias or human label. The continuing risk here is determined by: Deleting a managed declaration normally makes Terraform plan destruction of the tracked object. The targeted safeguard is “Use documented adoption and de-management procedures for handoffs”.
“Scan backend initialization artifacts for secret values” addresses a different recurring failure: Backend configuration may be persisted in local.terraform metadata and saved plans. For the condition in this question, maintain “Use documented adoption and de-management procedures for handoffs” because deleting a managed declaration normally makes Terraform plan destruction of the tracked object.