Question 160
The Terraform change owner at Granite Software Works seeks a verifiable outcome for: A new hire applies Terraform code before initializing its working directory and receives missing-provider errors. Which controlled check would validate the remediation?
Explanation
Correct Answer
The directory initializes successfully and the reviewed plan corresponds to the resulting applied resources. This directly verifies the corrective action: Follow the standard workflow: write configuration, terraform init, terraform plan, review, then terraform apply. The measured result specifically addresses the failure at Granite Software Works: A new hire applies Terraform code before initializing its working directory and receives missing-provider errors.
Incorrect Answers
Routine runs no longer produce trace output and incident-specific logging remains available when explicitly enabled. This evidence would validate a DIFFERENT correction: Disable verbose logging after troubleshooting and use the least verbose level that answers the incident question. That different correction addresses: A team leaves TF_LOG=TRACE enabled for every production run and creates large, potentially sensitive logs. It does not establish that the Granite Software Works issue has been corrected: A new hire applies Terraform code before initializing its working directory and receives missing-provider errors. The relevant measured outcome is: The directory initializes successfully and the reviewed plan corresponds to the resulting applied resources.
The state path changes as intended while resource API operations still use the explicitly configured provider identity. This evidence would validate a DIFFERENT correction: Configure backend storage separately from provider authentication and target settings. That different correction addresses: An engineer assumes setting a local backend changes provider credentials and account identity. It does not establish that the Granite Software Works issue has been corrected: A new hire applies Terraform code before initializing its working directory and receives missing-provider errors. The relevant measured outcome is: The directory initializes successfully and the reviewed plan corresponds to the resulting applied resources.
The destruction plan lists only managed resources and leaves unrelated untracked assets intact. This evidence would validate a DIFFERENT correction: Limit destroy expectations to objects tracked in the active state and manage other infrastructure separately. That different correction addresses: A maintainer expects terraform destroy to delete arbitrary infrastructure in the account that Terraform has never managed. It does not establish that the Granite Software Works issue has been corrected: A new hire applies Terraform code before initializing its working directory and receives missing-provider errors. The relevant measured outcome is: The directory initializes successfully and the reviewed plan corresponds to the resulting applied resources.