TERRAFORM-ASSOCIATE-004 · Question #117
You are working on some new application features and you want to spin up a copy of your production deployment to perform some quick tests. In order to avoid having to configure a new state backend…
The correct answer is D. Terraform workspaces. Terraform workspaces allow you to create multiple states but still be associated with your current code. Workspaces are like "environments" (e.g. staging, production) for the same configuration. You can use workspaces to spin up a copy of your production deployment for testing…
Question
Options
- ATerraform data sources
- BTerraform local values
- CTerraform modules
- DTerraform workspaces
- ENone of the above
How the community answered
(52 responses)- A2% (1)
- B2% (1)
- C4% (2)
- D92% (48)
Explanation
Terraform workspaces allow you to create multiple states but still be associated with your current code. Workspaces are like "environments" (e.g. staging, production) for the same configuration. You can use workspaces to spin up a copy of your production deployment for testing purposes without having to configure a new state backend. Terraform data sources, local values, and modules are not features that allow you to create multiple states.
Topics
Community Discussion
No community discussion yet for this question.