TERRAFORM-ASSOCIATE-004 · Question #117
TERRAFORM-ASSOCIATE-004 Question #117: Real Exam Question with Answer & Explanation
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 pu
Question
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, what open source Terraform feature would allow you create multiple states but still be associated with your current code?
Options
- ATerraform data sources
- BTerraform local values
- CTerraform modules
- DTerraform workspaces
- ENone of the above
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.