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

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

What is the purpose of a Terraform workspace in either open source or enterprise?

  • A. Workspaces allow you to manage collections of infrastructure in state files
  • B. A logical separation of business units
  • C. A method of grouping multiple infrastructure security policies
  • D. Provides limited access to a cloud environment
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
camps
1 year, 7 months ago
Selected Answer: A
A. Workspaces allow you to manage collections of infrastructure in state files. The purpose of a Terraform workspace, both in open source and enterprise, is to allow users to manage multiple "instances" of infrastructure within the same configuration codebase. Each workspace is a separate instance of a Terraform state file that can be managed independently. This means that a single Terraform configuration can be used to manage multiple sets of resources, with each set of resources represented by a separate workspace. Workspaces are useful when there is a need to manage multiple versions of the same infrastructure in the same configuration codebase, such as different environments (dev, staging, prod) or different regions. By creating a separate workspace for each instance of infrastructure, users can manage them independently without causing conflicts or overwriting state. Option B, C, and D are not correct. While workspaces may be used in conjunction with logical separation of business units, grouping multiple infrastructure security policies, or providing limited access to a cloud environment, they are not the primary purpose of workspaces in Terraform.
upvoted 4 times
...
princajen
1 year, 9 months ago
Selected Answer: A
A. Workspaces allow you to manage collections of infrastructure in state files. The purpose of Terraform workspaces is to manage multiple state files for the same Terraform configuration. Workspaces provide a way to organize and isolate state files for different environments (e.g., development, staging, production) or different configurations (e.g., different regions, different sets of resources). Each workspace has its own copy of the state file, allowing changes to be made independently and preventing conflicts. Workspaces are available in both open source and Terraform Enterprise. Option B, C, and D are not accurate descriptions of the purpose of Terraform workspaces. Workspaces do not provide logical separation of business units, grouping of infrastructure security policies, or limited access to a cloud environment. These are functions of other Terraform Enterprise features, such as organizations, policy sets, and workspaces with role-based access controls.
upvoted 3 times
...
InformationOverload
1 year, 11 months ago
Selected Answer: A
A workspace is a logical separation of resources within the same configuration. Workspaces allow you to manage multiple environments, such as production, staging, and development, within the same configuration and state file. I will go for A here.
upvoted 1 times
...
macross
1 year, 11 months ago
Workspaces in Terraform are simply independently managed state files. A workspace contains everything that Terraform needs to manage a given collection of infrastructure, and separate Workspaces function like completely separate working directories. We can manage multiple environments with Workspaces. Answer A
upvoted 1 times
...
secdaddy
1 year, 11 months ago
There is no discussion of business units in the documentation so (A) seems to make the most sense, based on these two sources both of which mention state : Terraform CLI workspaces are associated with a specific working directory and isolate multiple state files in the same working directory, letting you manage multiple groups of resources with a single configuration. https://developer.hashicorp.com/terraform/cloud-docs/workspaces The persistent data stored in the backend belongs to a workspace. The backend initially has only one workspace containing one Terraform state associated with that configuration. Some backends support multiple named workspaces, allowing multiple states to be associated with a single configuration. The configuration still has only one backend, but you can deploy multiple distinct instances of that configuration without configuring a new backend or changing authentication credentials. https://developer.hashicorp.com/terraform/language/state/workspaces
upvoted 2 times
...
BleHi
2 years ago
Selected Answer: B
https://www.hashicorp.com/resources/why-consider-terraform-enterprise-over-open-source Terraform Enterprise provides a logical unit to break down infrastructure as code into workspaces.
upvoted 1 times
...
yogishrb2020
2 years, 1 month ago
Selected Answer: A
https://www.terraform.io/cloud-docs/workspaces
upvoted 3 times
...
yaza
2 years, 1 month ago
Selected Answer: B
upvoted 1 times
yaza
2 years, 1 month ago
becaue A is the correct of cli-workspace and not cloud workspace
upvoted 1 times
...
...
Hizumi
2 years, 2 months ago
Answer is A Working with Terraform involves managing collections of infrastructure resources, and most organizations manage many different collections. Reference: https://www.terraform.io/cloud-docs/workspaces (Refer to workspace contents)
upvoted 2 times
SanderIsTheBestCloudShaper
2 years, 2 months ago
hello , is this dump valid ? i see u really active can u answer me.
upvoted 2 times
kashifhussain
2 years, 2 months ago
I would like to know that as well please.
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 ...