terraform-associate question 344 discussion

View all HashiCorp Certified: Terraform Associate Exam here
back to hashicorp forum

Question 344

You have to initialize a Terraform backend before it can be configured.

  • A. True
  • B. False
Answer:

A


User Votes:
A
50%
B 2 votes
50%
Discussions
0 / 1000
nassimaelferkhsi
4 months ago

You do not need to initialize a Terraform backend before configuring it. Instead, the process works the other way around:

You define the backend configuration in your Terraform code (usually in a .tf file).
Then, when you run terraform init, Terraform initializes the backend based on the configuration you provided.
For example, you might configure a

nassimaelferkhsi
3 months, 3 weeks ago

Aamir_Ahmed
3 weeks, 6 days ago

The correct answer is:

B. False

Explanation:
You must configure a Terraform backend before initializing it with terraform init.