Infrastructure · Flashcard

What is the purpose of Terraform state?

  • ATo map the resources in your configuration to the real objects that exist in the world
  • BTo store the provider plugins that Terraform downloads for the configuration to use
  • CTo record the ordered commands that Terraform will run during the next apply step
  • DTo hold the version constraints that Terraform applies when selecting its providers

Why this is the answer

State maps config to real infrastructure so Terraform knows what it manages. Provider plugins live in .terraform, not in state.

Official docs
Study in Gnoseed →