BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Exam Terraform-Associate-003 Topic 8 Question 5 Discussion

Actual exam question for HashiCorp's Terraform-Associate-003 exam
Question #: 5
Topic #: 8
[All Terraform-Associate-003 Questions]

When should you run terraform init?

Show Suggested Answer Hide Answer
Suggested Answer: D

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


Contribute your Thoughts:

Yuonne
7 months ago
Nah, I'm more partial to option D. Once you've got your code written, you should definitely run `terraform init` before planning and applying, just to make sure everything is set up properly.
upvoted 0 times
...
Whitney
7 months ago
I think option B is the way to go. It's just good practice to initialize your project before you even start coding, that way you don't run into any surprises later on.
upvoted 0 times
...
Theodora
7 months ago
I agree, `terraform init` is definitely the first step whenever I start a new Terraform project. It sets up the necessary provider plugins and state management, so you can't really do anything else without running it first.
upvoted 0 times
Franchesca
7 months ago
Definitely, always start with `terraform init` when setting up Terraform
upvoted 0 times
...
Rory
7 months ago
B)
upvoted 0 times
...
Merrilee
7 months ago
Absolutely, it's important to initialize the project with terraform init
upvoted 0 times
...
Kami
7 months ago
B
upvoted 0 times
...
Melda
7 months ago
Yes, `terraform init` is crucial to set up a new Terraform project
upvoted 0 times
...
Daniel
7 months ago
B)
upvoted 0 times
...
...
Lenna
7 months ago
Hmm, this is a tricky one. I've always run `terraform init` before doing anything else with a new project, but I can see the logic behind some of the other options too.
upvoted 0 times
...

Save Cancel