Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Terraform-Associate-004 Exam - Topic 2 Question 2 Discussion

Actual exam question for HashiCorp's Terraform-Associate-004 exam
Question #: 2
Topic #: 2
[All Terraform-Associate-004 Questions]

Which task does terraform init not perform?

Show Suggested Answer Hide Answer
Suggested Answer: A

The terraform init command is used to initialize a working directory containing Terraform configuration files. This command performs several different initialization steps to prepare the current working directory for use with Terraform, which includes initializing the backend, installing provider plugins, and copying any modules referenced in the configuration. However, it does not validate whether all required variables are present; that is a task performed by terraform plan or terraform apply1.

Reference = This information can be verified from the official Terraform documentation on the terraform init command provided by HashiCorp Developer1.


Contribute your Thoughts:

0/2000 characters
Jade
3 days ago
Terraform init is like a magic wand for your infrastructure - it makes everything appear, except the kitchen sink!
upvoted 0 times
...
Mindy
8 days ago
B) Sources any modules and copies the configuration locally
upvoted 0 times
...
Shelton
13 days ago
C) Connects to the backend
upvoted 0 times
...
Chara
19 days ago
D) Sources all providers used in the configuration and downloads them
upvoted 0 times
...
Hillary
24 days ago
A) Validates all required variables are present
upvoted 0 times
...
Jacklyn
29 days ago
I feel like option A might be the right answer since I recall that variable validation happens during plan or apply, not init.
upvoted 0 times
...
Bobbie
1 month ago
I’m a bit confused about the modules part. Does terraform init really copy them locally, or is that done later?
upvoted 0 times
...
Veronika
2 months ago
I remember practicing a question about what terraform init does, and I think it definitely connects to the backend.
upvoted 0 times
...
Talia
2 months ago
I think terraform init does validate variables, but I'm not entirely sure if it checks for all of them.
upvoted 0 times
...
Gracia
2 months ago
Ah, I remember this from the Terraform documentation. Terraform init doesn't validate the variables, that's a separate step. I'll go with that answer.
upvoted 0 times
...
Phil
2 months ago
I'm a bit confused on this one. I know init downloads the providers, but I'm not sure if it validates the variables. Guess I'll have to eliminate the options and see what's left.
upvoted 0 times
...
Wava
3 months ago
I'm pretty confident I know the answer to this one. Terraform init doesn't actually connect to the backend, that's a separate step. I'll mark that as my answer.
upvoted 0 times
...
Earleen
3 months ago
Okay, let me think this through. I know init sets up the Terraform working directory, but I'm not sure if it actually validates all the variables. I'll have to double-check that.
upvoted 0 times
...
Garry
3 months ago
Hmm, I think this one might be tricky. I'll need to review the Terraform init documentation to make sure I understand all the different tasks it performs.
upvoted 0 times
...

Save Cancel