HashiCorp
TERRAFORM-ASSOCIATE-004 · Question #38
Terraform variable names are saved in the state file.
The correct answer is B. False. Terraform variable names are not saved in the state file, only their values are. The state file only stores the attributes of the resources and data sources that are managed by Terraform, not the variables that are used to configure them.
Submitted by cyberguy42· Apr 18, 2026Manage Terraform State
Question
Terraform variable names are saved in the state file.
Options
- ATrue
- BFalse
How the community answered
(30 responses)- A7% (2)
- B93% (28)
Explanation
Terraform variable names are not saved in the state file, only their values are. The state file only stores the attributes of the resources and data sources that are managed by Terraform, not the variables that are used to configure them.
Topics
#Terraform state#State file contents#Variables
Community Discussion
No community discussion yet for this question.