HashiCorp Certified: Terraform Associate — Question 211
Which command must you first run before performing further Terraform operations in a working directory?
Answer options
- A. terraform plan
- B. terraform workspace
- C. terraform init
- D. terraform import
Correct answer: C
Explanation
The correct answer is C, 'terraform init', because this command initializes the working directory containing Terraform configuration files and prepares it for other operations. The other commands, such as 'terraform plan', 'terraform workspace', and 'terraform import', require that the initialization step has already been completed.