TA-002-P · Question #2
One remote backend configuration always maps to a single remote workspace.
The correct answer is A. True. A single remote backend configuration in Terraform is designed to manage the state for a single workspace, providing isolation for different environments or projects within the same backend.
Question
One remote backend configuration always maps to a single remote workspace.
Options
- ATrue
- BFalse
How the community answered
(63 responses)- A94% (59)
- B6% (4)
Why each option
A single remote backend configuration in Terraform is designed to manage the state for a single workspace, providing isolation for different environments or projects within the same backend.
While a remote backend itself can store multiple workspaces, each specific `backend` configuration block in your Terraform code points to and manages the state for one designated workspace, ensuring logical separation of states.
Although a remote backend service can host multiple workspaces, a given `backend` configuration in your `main.tf` is configured to interact with a specific workspace's state within that backend.
Concept tested: Terraform remote backend and workspaces
Source: https://developer.hashicorp.com/terraform/language/state/workspaces
Topics
Community Discussion
No community discussion yet for this question.