Exam TA-002-P Topic 12 Question 74 Discussion

Actual exam question for HashiCorp's TA-002-P exam
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

by Max at May 06, 2026, 07:51 AM

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
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