Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 106

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

    Correct Answer: B

    The terraform validate command checks whether the configuration files in a directory are syntactically correct and consistent. It does not interact with the Terraform state file or verify that the actual infrastructure matches the state. Its primary purpose is to ensure that the provided configuration files are error-free and logically coherent.

Discussion
RVivekOption: B

Validate only checks the syntax http://man.hubwiz.com/docset/Terraform.docset/Contents/Resources/Documents/docs/commands/validate.html

Uma10Option: 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

babgadOption: 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

Busi57Option: B

false B Validate only checks the syntax

Ni33Option: B

B is the correct answer. Terraform plan validates desired state with current state configuration.

0ptimusOption: B

B because Terraform validate only checks for syntax error or so

bora4motionOption: B

It's more of a syntax thing.

BurakkoOption: B

False, terraform validate has nothing to do with the state file.

Busi57Option: B

False B

Power123Option: B

False , B is correct

adoubanOption: B

B is correct