HashiCorp Terraform 004 State Management Guide

HashiCorp Terraform 004 state guide covering remote state, locking, import, drift, and refactor decisions.

State is one of the highest-yield objective areas on the exam. Candidates who treat state like optional background metadata usually lose points on drift, backend, import, and collaboration questions.

Work this objective area in order

Lesson Focus
6.1 Local State & Backends Learn what local state is and what a backend actually controls.
6.2 Remote State & Locking Learn why teams move state off local disk and why locking matters.
6.3 Drift, Refresh & Refactors Learn how Terraform handles divergence and state-focused corrections.

Fast routing inside this chapter

If the question is really about… Go first to…
what state is or what a backend controls 6.1 Local State & Backends
team collaboration or concurrency safety 6.2 Remote State & Locking
drift, refresh-only behavior, or moved and removed state changes 6.3 Drift, Refresh & Refactors

What strong answers usually do

  • define state as Terraform’s management record
  • distinguish backend location from provider behavior
  • connect remote state and locking to safer team workflow

In this section

Revised on Sunday, May 10, 2026