Question 340
A Terraform associate evaluates: A reviewer needs to separate useful operational outputs from confidential credentials. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: A reviewer needs to separate useful operational outputs from confidential credentials. The directly relevant Terraform response is: Declare outputs for intended consumer values and mark sensitive outputs appropriately while separately protecting any state that may contain them. This addresses the related failure mode: A sensitive output designation hides normal CLI disclosure but does not guarantee the underlying state contains no secret. Validate the result by checking: An authorized workflow can consume the output while casual CLI display is redacted and backend access remains restricted. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: A reviewer needs to separate useful operational outputs from confidential credentials. The acceptance evidence is: An authorized workflow can consume the output while casual CLI display is redacted and backend access remains restricted. It verifies the corrective approach (Declare outputs for intended consumer values and mark sensitive outputs appropriately while separately protecting any state that may contain them.) and controls the risk: A sensitive output designation hides normal CLI disclosure but does not guarantee the underlying state contains no secret. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
terraform console evaluates the expression to the expected value for representative inputs. This belongs to Terraform expressions and built-in functions (official objective 4e). Its separate risk is that manually duplicating derived labels and tags across resources invites inconsistency and errors. The question instead tests Outputs and sensitive display control; that other safeguard alone does not verify it.
Declare typed input variables and supply different values through approved tfvars or other documented input mechanisms rather than editing module internals. This is relevant to Input variables and default or CLI overrides (official objective 4c). Its distinct failure risk is that hardcoded environment values in shared configuration create accidental cross-environment changes. The present question tests Outputs and sensitive display control, which this measure alone does not establish.
Using an ordinary resource argument can persist secrets in state, while unsupported write-only fields cannot be assumed to exist. That is the exact risk associated with Provider write-only arguments and Vault integration (official objective 4h), not the required Outputs and sensitive display control outcome.