Question 90
An infrastructure reviewer wants the simplest supported Terraform mechanism to notice a security rule changed outside Terraform since the previous apply. Which option is correct?
Explanation
Correct Answer
Provider reads update Terraform's view of managed infrastructure. This meets the stated requirement to notice a security rule changed outside Terraform since the previous apply.
Incorrect Answers
State sensitivity awareness is intended to protect secrets that may appear in provider-managed resource attributes; sensitive output redaction alone does not remove sensitive values from persisted state. That is not the specific requirement to notice a security rule changed outside Terraform since the previous apply.
State as managed-object inventory is intended to inspect a list of resource addresses Terraform currently tracks; state records Terraform's associations, not every object existing in the cloud account. That is not the specific requirement to notice a security rule changed outside Terraform since the previous apply.
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 notice a security rule changed outside Terraform since the previous apply.






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