exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 269 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 269
Topic #: 1
[All Terraform Associate 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
DevoteamAnalytix
Highly Voted 6 months ago
Selected Answer: A
"Validation requires an initialized working directory with any referenced plugins and modules installed. " https://developer.hashicorp.com/terraform/cli/commands/validate
upvoted 6 times
...
LemonadeSoftware
Most Recent 1 month, 1 week ago
A. True Before running the terraform validate command, it is recommended to initialize your working directory using the terraform init command. The Terraform init command initializes the working directory and downloads the necessary providers and modules specified in your Terraform configuration. After initialization, you can use Terraform validate to check the syntax and validity of your Terraform files.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago