Question 480
After corrective work at Granite Software Works, a reviewer requests measurable proof for: A team exposes production credentials in a committed Terraform configuration and claims using Vault is unnecessary because outputs are marked sensitive. Which controlled check would validate the remediation?
Explanation
Correct Answer
Repository and log scans find no hardcoded secret while an authorized run retrieves the needed credential. This directly verifies the corrective action: Load credentials through an authorized secret-management integration such as Vault and avoid committing or echoing values. The measured result specifically addresses the failure at Granite Software Works: A team exposes production credentials in a committed Terraform configuration and claims using Vault is unnecessary because outputs are marked sensitive.
Incorrect Answers
An eligible workspace's drift status or resource inventory is visible to authorized reviewers. This evidence would validate a DIFFERENT correction: Use supported HCP Terraform health assessments or Explorer capabilities where the subscription provides them. That different correction addresses: A manager cannot identify which HCP Terraform workspaces have critical drift because teams inspect individual plans only. It does not establish that the Granite Software Works issue has been corrected: A team exposes production credentials in a committed Terraform configuration and claims using Vault is unnecessary because outputs are marked sensitive. The relevant measured outcome is: Repository and log scans find no hardcoded secret while an authorized run retrieves the needed credential.
A nested test module is reformatted and the recursive formatting check passes. This evidence would validate a DIFFERENT correction: Use terraform fmt -recursive when consistent formatting of nested directories is required. That different correction addresses: A developer wants to format Terraform files across nested module folders but runs fmt only in the root. It does not establish that the Granite Software Works issue has been corrected: A team exposes production credentials in a committed Terraform configuration and claims using Vault is unnecessary because outputs are marked sensitive. The relevant measured outcome is: Repository and log scans find no hardcoded secret while an authorized run retrieves the needed credential.
Invalid values are rejected and a numeric accepted value passes configuration checking. This evidence would validate a DIFFERENT correction: Use an explicit number type and appropriate variable validation to restrict the accepted port range. That different correction addresses: A module accepts a port number as an untyped string and downstream arithmetic and validation become inconsistent. It does not establish that the Granite Software Works issue has been corrected: A team exposes production credentials in a committed Terraform configuration and claims using Vault is unnecessary because outputs are marked sensitive. The relevant measured outcome is: Repository and log scans find no hardcoded secret while an authorized run retrieves the needed credential.