Question 700
The reliability team at Westhaven Application Ops is closing an incident described as follows: An initialization failure has insufficient context, but an operator enables verbose logs and forgets the log may contain sensitive provider data. Which controlled check would validate the remediation?
Explanation
Correct Answer
The diagnostic log identifies the failing operation without being published or retaining unrestricted credentials. This directly verifies the corrective action: Set TF_LOG to a needed diagnostic level for a controlled run and protect or redact any captured output. The measured result specifically addresses the failure at Westhaven Application Ops: An initialization failure has insufficient context, but an operator enables verbose logs and forgets the log may contain sensitive provider data.
Incorrect Answers
The CLI connects to the intended organization and repository scanning finds no token file or embedded secret. This evidence would validate a DIFFERENT correction: Use the supported CLI authentication workflow with protected credential storage and rotate exposed tokens. That different correction addresses: An engineer runs terraform login for an HCP Terraform account but stores the resulting API token in a shared public repository. It does not establish that the Westhaven Application Ops issue has been corrected: An initialization failure has insufficient context, but an operator enables verbose logs and forgets the log may contain sensitive provider data. The relevant measured outcome is: The diagnostic log identifies the failing operation without being published or retaining unrestricted credentials.
A changed environment input updates all calculated uses consistently without repeated expressions. This evidence would validate a DIFFERENT correction: Define a local value derived from variables and reference local.<name> from the resources. That different correction addresses: A configuration needs a per-environment local constant reused across several resources but duplicates the entire calculation in every block. It does not establish that the Westhaven Application Ops issue has been corrected: An initialization failure has insufficient context, but an operator enables verbose logs and forgets the log may contain sensitive provider data. The relevant measured outcome is: The diagnostic log identifies the failing operation without being published or retaining unrestricted credentials.
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 Westhaven Application Ops issue has been corrected: An initialization failure has insufficient context, but an operator enables verbose logs and forgets the log may contain sensitive provider data. The relevant measured outcome is: The diagnostic log identifies the failing operation without being published or retaining unrestricted credentials.