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
Question
Options
- ATrue
- BFalse
How the community answered
(21 responses)- A10% (2)
- B90% (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
Community Discussion
No community discussion yet for this question.