nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #156

terraform plan updates your state file.

The correct answer is B. False. The terraform plan command does not update the state file. Instead, it reads the current state and the configuration files to determine what changes would be made to bring the real-world infrastructure into the desired state defined in the configuration. The plan operation is a r

Submitted by brentm· Apr 18, 2026Manage Terraform State

Question

terraform plan updates your state file.

Options

  • ATrue
  • BFalse

How the community answered

(21 responses)
  • A
    10% (2)
  • B
    90% (19)

Explanation

The terraform plan command does not update the state file. Instead, it reads the current state and the configuration files to determine what changes would be made to bring the real-world infrastructure into the desired state defined in the configuration. The plan operation is a read-only operation and does not modify the state or the infrastructure. It is the terraform apply command that actually applies changes and updates the state file.

Topics

#terraform plan#state file#CLI commands#Terraform workflow

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice