Question 690
The Terraform change owner at Lakeview Data Services seeks a verifiable outcome for: A team needs to stop tracking a resource but assumes terraform state rm destroys the remote object as well. Which observation best confirms that the proposed correction worked?
Explanation
Correct Answer
After state rm, the object remains in the remote API but is absent from terraform state list. This directly verifies the corrective action: Use state rm only for removing Terraform management and use destroy when actual remote deletion is intended. The measured result specifically addresses the failure at Lakeview Data Services: A team needs to stop tracking a resource but assumes terraform state rm destroys the remote object as well.
Incorrect Answers
terraform init finds the directory and validation resolves its variables and resources. This evidence would validate a DIFFERENT correction: Correct the relative module source path and initialize the configuration to load the existing local module. That different correction addresses: A module declaration points to a local relative folder, but the folder has been renamed and initialization cannot find it. It does not establish that the Lakeview Data Services issue has been corrected: A team needs to stop tracking a resource but assumes terraform state rm destroys the remote object as well. The relevant measured outcome is: After state rm, the object remains in the remote API but is absent from terraform state list.
Workspaces appear in the intended projects and project-scoped permissions match ownership. This evidence would validate a DIFFERENT correction: Group related workspaces into HCP Terraform projects aligned to the owning teams or business units. That different correction addresses: An HCP Terraform organization has dozens of workspaces with different business owners but no grouping or permission boundary. It does not establish that the Lakeview Data Services issue has been corrected: A team needs to stop tracking a resource but assumes terraform state rm destroys the remote object as well. The relevant measured outcome is: After state rm, the object remains in the remote API but is absent from terraform state list.
The bucket is tracked by one responsible state and downstream plans do not fight over its settings. This evidence would validate a DIFFERENT correction: Assign a single owner state for the object and let other teams consume its outputs or a read-only lookup. That different correction addresses: An operator imports the same remote bucket into two independent root states to share responsibility between teams. It does not establish that the Lakeview Data Services issue has been corrected: A team needs to stop tracking a resource but assumes terraform state rm destroys the remote object as well. The relevant measured outcome is: After state rm, the object remains in the remote API but is absent from terraform state list.