QuestionQ162

Core Terraform workflow

When must Terraform be explicitly run in refresh-only mode?

  • A Before every terraform plan.
  • B Before every terraform apply.
  • C Before every terraform import.
  • D None of the above.
Explanation

Refresh-only mode is used to reconcile Terraform state with intentional or detected changes made outside Terraform, without modifying remote infrastructure. Normal terraform plan and terraform apply already refresh state in memory as part of their normal operation, so refresh-only mode is not required before every plan, apply, or import.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!