Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 2 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 2
Topic #: 1
[All Terraform Associate Questions]

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

  • A. True
  • B. False
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Zam88
Highly Voted 2 years, 5 months ago
Selected Answer: B
correct B
upvoted 9 times
...
Spandrop
Highly Voted 11 months, 1 week ago
Selected Answer: B
1 workspace -> 1 backend 1 backend -> multiple workspaces
upvoted 8 times
...
erif
Most Recent 1 month, 2 weeks ago
Selected Answer: B
A single remote backend configuration can support multiple remote workspaces. In Terraform, remote backends like Terraform Cloud or remote state storage solutions can manage multiple workspaces, each representing a different environment or set of infrastructure, all within the same backend configuration.
upvoted 1 times
...
SIAMIANJI
1 month, 4 weeks ago
Selected Answer: B
The remote backend can work with either a single remote Terraform Cloud workspace, or with multiple similarly-named remote workspaces (like networking-dev and networking-prod). The workspaces block of the backend configuration determines which mode it uses: To use a single remote Terraform Cloud workspace, set workspaces.name to the remote workspace's full name (like networking-prod). To use multiple remote workspaces, set workspaces.prefix to a prefix used in all of the desired remote workspace names. For example, set prefix = "networking-" to use Terraform cloud workspaces with names like networking-dev and networking-prod. This is helpful when mapping multiple Terraform CLI workspaces used in a single Terraform configuration to multiple Terraform Cloud workspaces. https://developer.hashicorp.com/terraform/language/settings/backends/remote
upvoted 1 times
...
purvakdevops91
4 months ago
Answer should be B False. Workspaces (offical documentation --> https://developer.hashicorp.com/terraform/language/settings/backends/remote#workspaces) The remote backend can work with either a single remote HCP Terraform workspace, or with multiple similarly-named remote workspaces (like networking-dev and networking-prod). The workspaces block of the backend configuration determines which mode it uses: To use a single remote HCP Terraform workspace, set workspaces.name to the remote workspace's full name (like networking-prod). To use multiple remote workspaces, set workspaces.prefix to a prefix used in all of the desired remote workspace names. For example, set prefix = "networking-" to use HCP Terraform workspaces with names like networking-dev and networking-prod. This is helpful when mapping multiple Terraform CLI workspaces used in a single Terraform configuration to multiple HCP Terraform workspaces.
upvoted 1 times
...
hrajkuma
4 months, 1 week ago
vote for B. False
upvoted 1 times
...
090200f
4 months, 2 weeks ago
The remote backend can work with either a single remote HCP Terraform workspace, or with multiple similarly-named remote workspaces, so B is correct answer
upvoted 2 times
...
liuyomz
7 months ago
Selected Answer: B
B. prefix switching
upvoted 1 times
...
6957dbd
8 months, 2 weeks ago
Selected Answer: B
The prefix switch is key here: prefix - (Optional) A prefix used in the names of one or more remote workspaces, all of which can be used with this configuration. The full workspace names are used in Terraform Cloud, and the short names (minus the prefix) are used on the command line for Terraform CLI workspaces. If omitted, only the default workspace can be used. This option conflicts with name. To use multiple remote workspaces, set workspaces.prefix to a prefix used in all of the desired remote workspace names. For example, set prefix = "networking-" to use Terraform cloud workspaces with names like networking-dev and networking-prod. This is helpful when mapping multiple Terraform CLI workspaces used in a single Terraform configuration to multiple Terraform Cloud workspaces. The backend configuration requires either name or prefix. Omitting both or setting both results in a configuration error.
upvoted 4 times
...
TigerInTheCloud
11 months, 1 week ago
Selected Answer: B
https://developer.hashicorp.com/terraform/language/settings/backends/remote "To use multiple remote workspaces, set workspaces.prefix to a prefix used in all of the desired remote workspace names. For example, set prefix = "networking-" to use Terraform cloud workspaces with names like networking-dev and networking-prod. This is helpful when mapping multiple Terraform CLI workspaces used in a single Terraform configuration to multiple Terraform Cloud workspaces."
upvoted 4 times
...
luxdolorosa
1 year ago
Selected Answer: B
I am working with GitLab, and I can create multiple instances within a single backend space
upvoted 3 times
...
NKSINGH
1 year ago
Correct B
upvoted 1 times
...
esuarve
1 year, 1 month ago
Selected Answer: B
Your explanation actually states that a remote backend can work with multiple similarly-named remote workspaces (like networking-dev and networking-prod) The answer A would not allow this
upvoted 2 times
...
arnabsinha4u
1 year, 2 months ago
Selected Answer: B
correct B https://developer.hashicorp.com/terraform/language/settings/backends/remote#workspaces
upvoted 1 times
...
ledjo
1 year, 2 months ago
B. A remote backend configuration is used to define where the Terraform state is stored, and it can be shared by multiple workspaces, each of which maintains its own separate state.
upvoted 2 times
...
paromanu007
1 year, 3 months ago
The remote backend can work with either a single remote Terraform Cloud workspace, or with multiple similarly-named remote workspaces (like networking-dev and networking-prod). The workspaces block of the backend configuration determines which mode it uses: Correct B
upvoted 1 times
...
Jayanth
1 year, 3 months ago
B. False
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...