Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 106 discussion

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

terraform validate validates that your infrastructure matches the Terraform state file.

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

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
RVivek
Highly Voted 2 years, 2 months ago
Selected Answer: B
Validate only checks the syntax http://man.hubwiz.com/docset/Terraform.docset/Contents/Resources/Documents/docs/commands/validate.html
upvoted 11 times
...
babgad
Most Recent 1 year, 2 months ago
Selected Answer: B
False B Validate runs checks that verify whether a configuration is syntactically valid and internally consistent, regardless of any provided variables or existing state. It is thus primarily useful for general verification of reusable modules, including correctness of attribute names and value types. It is safe to run this command automatically, for example as a post-save check in a text editor or as a test step for a re-usable module in a CI system https://developer.hashicorp.com/terraform/cli/v1.1.x/commands/validate
upvoted 3 times
...
Busi57
1 year, 4 months ago
Selected Answer: B
false B Validate only checks the syntax
upvoted 2 times
...
Busi57
1 year, 4 months ago
False B
upvoted 1 times
...
Ni33
1 year, 6 months ago
Selected Answer: B
B is the correct answer. Terraform plan validates desired state with current state configuration.
upvoted 2 times
...
Power123
1 year, 7 months ago
False , B is correct
upvoted 1 times
...
adouban
1 year, 11 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
0ptimus
2 years, 2 months ago
Selected Answer: B
B because Terraform validate only checks for syntax error or so
upvoted 2 times
...
bora4motion
2 years, 2 months ago
Selected Answer: B
It's more of a syntax thing.
upvoted 2 times
...
Burakko
2 years, 2 months ago
Selected Answer: B
False, terraform validate has nothing to do with the state file.
upvoted 2 times
...
Uma10
2 years, 2 months ago
Selected Answer: B
The terraform validate command validates the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc. Validate runs checks that verify whether a configuration is syntactically valid and internally consistent, regardless of any provided variables or existing state. It is thus primarily useful for general verification of reusable modules, including correctness of attribute names and value types. Source: https://www.terraform.io/cli/commands/validate
upvoted 3 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 ...