Question 140
A Terraform associate evaluates: An incident review needs to explain how addresses in HCL correspond to actual remote IDs. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: An incident review needs to explain how addresses in HCL correspond to actual remote IDs. The acceptance evidence is: terraform state list and plan show the expected resource address mapped to the existing object. It verifies the corrective approach (Use Terraform state as the mapping between configuration addresses and managed remote object identifiers, rather than treating state as the desired configuration itself.) and controls the risk: Deleting or editing state without understanding bindings can orphan real resources or produce unwanted create plans. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: An incident review needs to explain how addresses in HCL correspond to actual remote IDs. The directly relevant Terraform response is: Use Terraform state as the mapping between configuration addresses and managed remote object identifiers, rather than treating state as the desired configuration itself. This addresses the related failure mode: Deleting or editing state without understanding bindings can orphan real resources or produce unwanted create plans. Validate the result by checking: terraform state list and plan show the expected resource address mapped to the existing object. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
Protect state storage with encryption, narrow access and careful retention because resource attributes and secrets can appear in state. This is relevant to State sensitivity and access control (official objective 2d). Its distinct failure risk is that marking a variable sensitive does not automatically remove its secret value from state snapshots. The present question tests State resource bindings, which this measure alone does not establish.
The lock-file diff shows a permitted upgrade and regression tests check provider behavior before apply. That addresses Deliberate provider version upgrades (official objective 2a), specifically the hazard that assuming ordinary init always picks the latest permitted provider can overlook existing lock selections. Here the necessary action or evidence is the paired action terraform state list and plan show the expected resource address mapped to the existing object and separate validation Use Terraform state as the mapping between configuration addresses and managed remote object identifiers, rather than treating state as the desired configuration itself, not that separate control.
Terraform core alone does not know how to create every cloud resource without a supporting provider implementation. This addresses Provider plugin responsibilities (official objective 2b). The separate hazard is that terraform core alone does not know how to create every cloud resource without a supporting provider implementation. It does not by itself satisfy the case-specific requirement for State resource bindings.