Question 80
Brightside Cloud Works requires independent evidence before signing off this Terraform correction: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. Which controlled check would validate the remediation?
Explanation
Correct Answer
Clean installations select the approved provider versions with expected lock-file checksums. This directly verifies the corrective action: Keep the .terraform.lock.hcl file under version control and use normal initialization for team installs. The measured result specifically addresses the failure at Brightside Cloud Works: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file.
Incorrect Answers
After apply, automation can query the root output without inspecting child resource internals. This evidence would validate a DIFFERENT correction: Forward the necessary nested output through a root output while retaining encapsulation. That different correction addresses: A nested module produces an output needed by external automation, but the root never exposes it. It does not establish that the Brightside Cloud Works issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.
terraform init resolves the plugin and terraform validate recognizes the provider-defined resource type. This evidence would validate a DIFFERENT correction: Install and configure the relevant provider that exposes the target platform's resource types. That different correction addresses: A developer expects Terraform itself to create arbitrary cloud objects without API plugins and gets an unknown resource type. It does not establish that the Brightside Cloud Works issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.
After state rm, the object remains in the remote API but is absent from terraform state list. This evidence would validate a DIFFERENT correction: Use state rm only for removing Terraform management and use destroy when actual remote deletion is intended. That different correction addresses: A team needs to stop tracking a resource but assumes terraform state rm destroys the remote object as well. It does not establish that the Brightside Cloud Works issue has been corrected: Two developers obtain different provider binaries from the same repository because one manually deletes the dependency lock file. The relevant measured outcome is: Clean installations select the approved provider versions with expected lock-file checksums.