nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #158

Before you can use a remote backend, you must first execute terra-form init.

The correct answer is A. True. Before using a remote backend in Terraform, it is mandatory to run terraform init. This command initializes a Terraform working directory, which includes configuring the backend. If a remote backend is specified, terraform init will set up the working directory to use it…

Implement and maintain state

Question

Before you can use a remote backend, you must first execute terra-form init.

Options

  • ATrue
  • BFalse

How the community answered

(29 responses)
  • A
    83% (24)
  • B
    17% (5)

Explanation

Before using a remote backend in Terraform, it is mandatory to run terraform init. This command initializes a Terraform working directory, which includes configuring the backend. If a remote backend is specified, terraform init will set up the working directory to use it, including copying any existing state to the remote backend if necessary.

Topics

#remote backend#terraform init#backend initialization#workflow prerequisites

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice