Exam TA-002-P Topic 12 Question 74 Discussion
Actual exam question for HashiCorp's TA-002-P exam
Question #: 74
Topic #: 12
Question #: 74
Topic #: 12
You have created two workspaces PROD and DEV. You have switched to DEV and provisioned DEV infrastructure from this workspace. Where is your state file stored?
Suggested Answer: D Vote an answer
Terraform stores the workspace states in a directory called terraform.tfstate.d. This directory should be treated similarly to default workspace state file terraform.tfstate
├── main.tf
├── provider.tf
├── terraform.tfstate.d
│ ├── DEV
│ │ └── terraform.tfstate # DEV workspace state file
│ └── PROD
│ └── terraform.tfstate # PROD workspace state file
├── terraform.tfvars # Default workspace state file
└── variables.tf
├── main.tf
├── provider.tf
├── terraform.tfstate.d
│ ├── DEV
│ │ └── terraform.tfstate # DEV workspace state file
│ └── PROD
│ └── terraform.tfstate # PROD workspace state file
├── terraform.tfvars # Default workspace state file
└── variables.tf
by Max at May 06, 2026, 07:51 AM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).