nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #42

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you…

The correct answer is B. False. The execution plan for terraform apply will not be the same as the one you ran locally with terraform plan, if your teammate manually modified the infrastructure component you are working on. This is because Terraform will refresh the state file before applying any changes, and…

Use the core Terraform workflow

Question

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.

Options

  • ATrue
  • BFalse

How the community answered

(20 responses)
  • A
    20% (4)
  • B
    80% (16)

Explanation

The execution plan for terraform apply will not be the same as the one you ran locally with terraform plan, if your teammate manually modified the infrastructure component you are working on. This is because Terraform will refresh the state file before applying any changes, and will detect any differences between the state and the real resources.

Topics

#terraform plan#state refresh#concurrent changes#infrastructure drift

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice