Question 430
A team asks a cloud migration team to protect secrets that may appear in provider-managed resource attributes. Which Terraform mechanism should be used?
Explanation
Correct Answer
Sensitive output redaction alone does not remove sensitive values from persisted state. This meets the stated requirement to protect secrets that may appear in provider-managed resource attributes.
Incorrect Answers
State snapshot persistence is intended to continue managing long-lived resources after the CLI process exits; persistent state holds tracking information between executions. That is not the specific requirement to protect secrets that may appear in provider-managed resource attributes.
State refresh during planning is intended to notice a security rule changed outside Terraform since the previous apply; provider reads update Terraform's view of managed infrastructure. That is not the specific requirement to protect secrets that may appear in provider-managed resource attributes.
Remote state collaboration is intended to avoid two engineers keeping unrelated local snapshots for the same environment; a shared backend provides a common management record. That is not the specific requirement to protect secrets that may appear in provider-managed resource attributes.






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