nerdexam
HashiCorp

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.

Use Terraform Cloud and Terraform Enterprise capabilities

Question

One remote backend configuration always maps to a single remote workspace.

Options

  • ATrue
  • BFalse

How the community answered

(63 responses)
  • A
    94% (59)
  • B
    6% (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.

ATrueCorrect

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.

BFalse

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

#Terraform Cloud#Remote Backend#Workspaces#State Management

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice