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

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

You would like to reuse the same Terraform configuration for your development and production environments with a different state file for each.
Which command would you use?

  • A. terraform import
  • B. terraform workspace
  • C. terraform state
  • D. terraform init
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
amrith501
Highly Voted 2 years, 5 months ago
Selected Answer: B
Workspace is the right answer
upvoted 10 times
...
Ahmad_Terraform
Highly Voted 2 years, 4 months ago
workspace = different state file
upvoted 7 times
...
090200f
Most Recent 4 months, 1 week ago
terraform workspace new dev (or prod) , terraform apply -var-file dev.tfvars so terraform workspace is the answer
upvoted 2 times
...
Ni33
1 year, 6 months ago
Selected Answer: B
BBBBBBBBBB
upvoted 1 times
...
eduvar4
2 years, 1 month ago
Selected Answer: B
https://developer.hashicorp.com/terraform/language/state/workspaces#when-to-use-multiple-workspaces
upvoted 2 times
...
Eltooth
2 years, 4 months ago
Selected Answer: B
B is correct answer : Workspaces. https://www.terraform.io/language/state/workspaces#when-to-use-multiple-workspaces
upvoted 4 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 ...