🔥 3-day streak
HashiCorp Certified: Terraform Associate (004)149 / 150
Question 149 of 150

You manage a single Terraform configuration for a web application and want to maintain separate state files for your 'dev' and 'prod' environments using Terraform's built-in CLI workspaces, all within the same backend. You are currently on the 'default' workspace and need to create and switch to a new workspace called 'prod'. Which command accomplishes this?

Reviewed for accuracy · Report an issueNext question