ExamGecko
Question list
Search
Search

Question 145 - Terraform Associate 003 discussion

Report
Export

When should you run terraform init?

A.
Every time you run terraform apply
Answers
A.
Every time you run terraform apply
B.
Before you start coding a new Terraform project
Answers
B.
Before you start coding a new Terraform project
C.
After you run terraform plan for the time in a new terraform project and before you run terraform apply
Answers
C.
After you run terraform plan for the time in a new terraform project and before you run terraform apply
D.
After you start coding a new terraform project and before you run terraform plan for the first time.
Answers
D.
After you start coding a new terraform project and before you run terraform plan for the first time.
Suggested answer: D

Explanation:

You should runterraform initafter you start coding a new Terraform project and before you runterraform planfor the first time. This command will initialize the working directory by downloading the required providers and modules, creating the initial state file, and performing other necessary tasks.Reference= : Initialize a Terraform Project

asked 18/09/2024
leconte maxime
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first