Terraform plan updates your state file.

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

Terraform plan updates your state file.

Explanation:
Terraform plan is a dry run that previews what would change to reach the desired configuration. It compares the current state with the real infrastructure and with your configuration, and it may refresh its view of resources to ensure the preview is accurate. However, this refresh/update does not write to the state file on disk. The state is updated only when you actually apply the changes, such as with terraform apply (or applying a saved plan file). So the plan itself does not update the state file, making the statement false in all cases.

Terraform plan is a dry run that previews what would change to reach the desired configuration. It compares the current state with the real infrastructure and with your configuration, and it may refresh its view of resources to ensure the preview is accurate. However, this refresh/update does not write to the state file on disk. The state is updated only when you actually apply the changes, such as with terraform apply (or applying a saved plan file). So the plan itself does not update the state file, making the statement false in all cases.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy