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

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

You have decided to create a new Terraform workspace to deploy a development environment.

What is different about this workspace?

  • A. It has its own state file
  • B. It pulls in a different terraform.tfvars file
  • C. It uses a different branch of code
  • D. It uses a different backend
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
Oleg_gol
1 year, 6 months ago
Selected Answer: A
A. It has its own state file
upvoted 1 times
...
styro
1 year, 7 months ago
Selected Answer: A
A. It has its own state file When you create a new Terraform workspace, it has its own separate state file. This allows you to manage and deploy multiple environments with different configurations without interfering with each other. Each workspace’s state file is isolated from the others, ensuring that changes in one environment don’t affect the resources in another environment. While it is possible for different workspaces to use different terraform.tfvars files, branches of code, or even different backends, these differences are not inherently tied to the creation of a new workspace. These variations would depend on how you choose to structure and manage your Terraform configurations for different environments.
upvoted 3 times
...
tbhtp
1 year, 7 months ago
Selected Answer: A
A. It has its own state file When you create a new Terraform workspace, it will have its own state file. This separation of state files allows you to manage multiple environments, such as development, staging, and production, without their resources and configurations conflicting with each other. Each workspace will maintain its own state, so you can apply changes to one environment without affecting the others. The other options mentioned (B, C, and D) are not inherently different in a new workspace, but can be configured as needed for the specific environment.
upvoted 1 times
...
camps
1 year, 7 months ago
Selected Answer: A
A. It has its own state file When you create a new Terraform workspace, it gets its own state file. Terraform workspaces are designed to manage multiple separate instances of your infrastructure with the same configuration. Each workspace has its own separate state file to track the resources and their states within that specific environment (e.g., development, staging, or production).
upvoted 2 times
...
hahano
1 year, 7 months ago
Selected Answer: B
You can use workspaces for different environments, which would require different vars
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 ...