nerdexam
HashiCorpHashiCorp

TA-002-P · Question #53

TA-002-P Question #53: Real Exam Question with Answer & Explanation

The correct answer is C: terraform workspace list. {"question_number": 3, "question": "What command should you run to display all workspaces for the current configuration?", "correct_answer": "C. terraform workspace list", "explanation": "terraform workspace list displays all existing workspaces for the current configuration and

Use the Terraform CLI (terraform plan, apply, destroy, fmt, init, validate, workspace, import, taint, providers, output)

Question

What command should you run to display all workspaces for the current configuration?

Options

  • Aterraform workspace
  • Bterraform workspace show
  • Cterraform workspace list
  • Dterraform show workspace

Explanation

{"question_number": 3, "question": "What command should you run to display all workspaces for the current configuration?", "correct_answer": "C. terraform workspace list", "explanation": "terraform workspace list displays all existing workspaces for the current configuration and marks the currently active workspace with an asterisk (*). The terraform workspace command alone is not valid on its own. terraform workspace show displays only the name of the current workspace (not all of them). terraform show workspace is not a valid Terraform command at all.", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

#Terraform CLI#Workspaces#Command syntax

Community Discussion

No community discussion yet for this question.

Full TA-002-P PracticeBrowse All TA-002-P Questions