nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · 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…

Use the core Terraform workflow

Question

terraform plan updates your state file.

Options

  • ATrue
  • BFalse

How the community answered

(39 responses)
  • A
    26% (10)
  • B
    74% (29)

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#core workflow#plan behavior

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice