nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #220

You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time. Which Terraform command should you

The correct answer is B. terraform init. B (terraform init) - Must be run first to initialize the Terraform working directory, download providers, and configure the backend. A (terraform apply) - Requires initialization first, so it cannot be run before terraform init. C (terraform plan) - Also requires terraform init f

Submitted by daniela_cl· Apr 18, 2026Use Terraform CLI

Question

You have just developed a new Terraform configuration for two virtual machines with a cloud provider. You would like to create the infrastructure for the first time. Which Terraform command should you run first?

Options

  • Aterraform apply
  • Bterraform init
  • Cterraform plan
  • Dterraform show

How the community answered

(38 responses)
  • A
    8% (3)
  • B
    87% (33)
  • C
    3% (1)
  • D
    3% (1)

Explanation

B (terraform init) - Must be run first to initialize the Terraform working directory, download providers, and configure the backend. A (terraform apply) - Requires initialization first, so it cannot be run before terraform init. C (terraform plan) - Also requires terraform init first to generate a plan. D (terraform show) - Displays the state, not relevant for first-time deployment.

Topics

#Terraform workflow#terraform init#Initialization#CLI commands

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice