Question 170
A product infrastructure team is writing infrastructure automation. The acceptance requirement is to make a supported provider accept a credential without Terraform persisting its literal value. What approach addresses it directly?
Explanation
Correct Answer
Provider write-only schema enables confidential inputs without state persistence. This meets the stated requirement to make a supported provider accept a credential without Terraform persisting its literal value.
Incorrect Answers
Use provider environment authentication is intended to supply API credentials to Terraform via supported ephemeral environment values; externalized authentication avoids embedding secrets in configuration. That is not the specific requirement to make a supported provider accept a credential without Terraform persisting its literal value.
Restrict backend reader permissions is intended to stop unauthorized users from viewing secrets embedded in state snapshots; backend access controls protect potentially sensitive state. That is not the specific requirement to make a supported provider accept a credential without Terraform persisting its literal value.
Mark output as sensitive is intended to keep a generated secret from routine CLI display when listing outputs; sensitive output markings prevent accidental display but not storage. That is not the specific requirement to make a supported provider accept a credential without Terraform persisting its literal value.






HashiCorp Certified: Terraform Associate (004) (Terraform Associate 004) Practice Tests