Question 470
A controlled test for Clearwater Systems focuses on the original failure: An engineer supplies a password to a standard provider resource argument and expects Terraform to omit it from state merely because the argument is called password. Which observation best confirms that the proposed correction worked?
Explanation
Correct Answer
The chosen resource schema confirms write-only support and the password value is absent from stored plans and state. This directly verifies the corrective action: Use a provider-supported write-only argument together with an ephemeral secret source when available. The measured result specifically addresses the failure at Clearwater Systems: An engineer supplies a password to a standard provider resource argument and expects Terraform to omit it from state merely because the argument is called password.
Incorrect Answers
terraform validate succeeds and both condition paths evaluate to the expected type. This evidence would validate a DIFFERENT correction: Make both branches return compatible types and keep the condition a Boolean expression. That different correction addresses: An operator uses a conditional expression with incompatible branch value types and receives a configuration type error. It does not establish that the Clearwater Systems issue has been corrected: An engineer supplies a password to a standard provider resource argument and expects Terraform to omit it from state merely because the argument is called password. The relevant measured outcome is: The chosen resource schema confirms write-only support and the password value is absent from stored plans and state.
The CLI version is checked independently and the provider version change appears in the lock file. This evidence would validate a DIFFERENT correction: Manage CLI version installation separately and use init -upgrade only for dependency selections supported by configuration. That different correction addresses: A team assumes terraform init -upgrade also updates the Terraform CLI executable on engineers' laptops. It does not establish that the Clearwater Systems issue has been corrected: An engineer supplies a password to a standard provider resource argument and expects Terraform to omit it from state merely because the argument is called password. The relevant measured outcome is: The chosen resource schema confirms write-only support and the password value is absent from stored plans and state.
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 Clearwater Systems issue has been corrected: An engineer supplies a password to a standard provider resource argument and expects Terraform to omit it from state merely because the argument is called password. The relevant measured outcome is: The chosen resource schema confirms write-only support and the password value is absent from stored plans and state.