terraform-associate question 364 discussion

View all HashiCorp Certified: Terraform Associate Exam here
back to hashicorp forum

Question 364

What is the purpose of a Terraform workspace in either open source of 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
Answer:

B


User Votes:
A 2 votes
50%
B 2 votes
50%
C
50%
D
50%
Discussions
0 / 1000
misosan1
1 month, 3 weeks ago

Correct answer A:
In Terraform, a workspace is a way to manage multiple state files within the same configuration. This is especially useful when you want to:

Maintain separate environments (e.g., dev, staging, prod) using the same configuration.
Avoid overwriting infrastructure by isolating state files.
Test changes in a non-production environment before applying them to production.