Question 440
A Terraform associate evaluates: A security tester checks whether a newly supplied secret appears in the saved execution plan. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: A security tester checks whether a newly supplied secret appears in the saved execution plan. The directly relevant Terraform response is: Pass secrets through provider-supported write-only arguments and appropriate Vault or ephemeral sources, checking provider versions and never logging values. This addresses the related failure mode: Using an ordinary resource argument can persist secrets in state, while unsupported write-only fields cannot be assumed to exist. Validate the result by checking: A supported write-only argument updates the target without storing the supplied secret in state or plan. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: A security tester checks whether a newly supplied secret appears in the saved execution plan. The acceptance evidence is: A supported write-only argument updates the target without storing the supplied secret in state or plan. It verifies the corrective approach (Pass secrets through provider-supported write-only arguments and appropriate Vault or ephemeral sources, checking provider versions and never logging values.) and controls the risk: Using an ordinary resource argument can persist secrets in state, while unsupported write-only fields cannot be assumed to exist. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
Use sensitive to redact CLI display and ephemeral for supported temporary values that must be omitted from plan and state, respecting context restrictions. This belongs to Sensitive variables versus ephemeral variables (official objective 4h). Its separate risk is that a secret can still appear in state despite sensitive=true and may require an ephemeral value path to avoid persistence. The question instead tests Provider write-only arguments and Vault integration; that other safeguard alone does not verify it.
Malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. This is relevant to Input variable validation rules (official objective 4g). Its distinct failure risk is that malformed input values can drive unsupported sizes or unsafe configuration even when their basic types are valid. The present question tests Provider write-only arguments and Vault integration, which this measure alone does not establish.
A small console evaluation verifies indexing and keys match the intended collection semantics. This addresses Terraform list set and map collections (official objective 4d). The separate hazard is that using a set where stable indices are required can make addressing and ordering assumptions invalid. It does not by itself satisfy the case-specific requirement for Provider write-only arguments and Vault integration.