When using a remote backend or Terraform Cloud integration, where is resource state stored?

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

When using a remote backend or Terraform Cloud integration, where is resource state stored?

Explanation:
When you use a remote backend or Terraform Cloud, the resource state is stored remotely in that backend rather than on your local disk. The state file lives in the remote service (for example, a Terraform Cloud workspace or a configured remote backend like S3 with locking). Terraform reads the state from that remote location during plans and applies, and then updates it back to the same remote place. This setup provides a single source of truth, enables state locking to prevent concurrent changes, and supports collaboration across teams. Your local machine just runs the operations and holds configuration temporarily; the persistent state lives in the remote backend.

When you use a remote backend or Terraform Cloud, the resource state is stored remotely in that backend rather than on your local disk. The state file lives in the remote service (for example, a Terraform Cloud workspace or a configured remote backend like S3 with locking). Terraform reads the state from that remote location during plans and applies, and then updates it back to the same remote place. This setup provides a single source of truth, enables state locking to prevent concurrent changes, and supports collaboration across teams. Your local machine just runs the operations and holds configuration temporarily; the persistent state lives in the remote backend.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy