Exam Terraform-Associate-003 Topic 3 Question 117 Discussion

Actual exam question for HashiCorp's Terraform-Associate-003 exam
Question #: 117
Topic #: 3
terraform plan updates your state file.

Suggested Answer: B Vote an answer

Theterraform plancommand 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 theterraform applycommand that actually applies changes and updates the state file.References= Terraform's official guidelines and documentation clarify the purpose of theterraform plancommand, highlighting its role in preparing and showing an execution plan without making any changes to the actual state or infrastructure .

by unknown69 at Mar 21, 2025, 02:47 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
unknown69
2025-03-21 14:47:19
I think this is wrong.
terraform plan does update your state file and infrastructure.
Link: https://spacelift.io/blog/terraform-plan
upvoted 1 times
...
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10