nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #107

TERRAFORM-ASSOCIATE-004 Question #107: Real Exam Question with Answer & Explanation

The correct answer is D: terraform init. terraform init is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control. It initializes a working directory containing Terraform configuration files and downloads any required providers and modules. The ot

Submitted by tunde_lagos· Apr 18, 2026Use Terraform CLI

Question

Which command must you first run before performing further Terraform operations in a working directory?

Options

  • Aterraform import
  • Bterraform workspace
  • Cterraform plan
  • Dterraform init

Explanation

terraform init is the first command that should be run after writing a new Terraform configuration or cloning an existing one from version control. It initializes a working directory containing Terraform configuration files and downloads any required providers and modules. The other commands are used for different purposes, such as importing existing resources, switching between workspaces, generating execution plans, etc.

Topics

#terraform init#initialization#terraform workflow#CLI commands

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions