exam questions

Exam Terraform Associate 003 All Questions

View all questions & answers for the Terraform Associate 003 exam

Exam Terraform Associate 003 topic 1 question 77 discussion

Actual exam question from HashiCorp's Terraform Associate 003
Question #: 77
Topic #: 1
[All Terraform Associate 003 Questions]

You must initialize your working directory before running terraform validate.

  • A. True
  • B. False
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ShakthiGCP
1 day, 6 hours ago
Selected Answer: A
No, you cannot run terraform validate successfully before running terraform init for the first time. You must always run terraform init first.
upvoted 1 times
...
March2023
3 weeks, 1 day ago
Selected Answer: A
It A, test it yourself youll get an error stating TF needs to be initialized before anything else.
upvoted 2 times
...
brugmany
1 month, 3 weeks ago
Selected Answer: A
Why, before you can run terraform validate, you need to initialize the working directory with terraform init. This sets up the backend, downloads required providers, and ensures your configuration is ready for validation. If you skip init, validate will fail because it won’t know where to find the providers or modules referenced in your config.
upvoted 2 times
...
f0f1e05
2 months ago
Selected Answer: B
B - False
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...