nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #201

Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.

The correct answer is A. True. The terraform init command is required before using a new backend or integrating with HCP Terraform/Terraform Cloud. terraform init initializes the working directory and sets up the backend, downloading necessary provider plugins and modules. If the backend configuration…

Navigate the Core Terraform Workflow

Question

Before you can use a new backend or HCP Terraform/Terraform Cloud integration, you must first execute terraform init.

Options

  • ATrue
  • BFalse

How the community answered

(24 responses)
  • A
    83% (20)
  • B
    17% (4)

Explanation

The terraform init command is required before using a new backend or integrating with HCP Terraform/Terraform Cloud. terraform init initializes the working directory and sets up the backend, downloading necessary provider plugins and modules. If the backend configuration changes, Terraform will require re-initialization to apply those changes. Without running terraform init, Terraform will fail to use a new backend or remote Terraform Cloud workspace.

Topics

#terraform init#backend configuration#HCP Terraform integration#initialization

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice