HashiCorp Certified: Terraform Associate — Question 73

Where in your Terraform configuration do you specify a state backend?

Answer options

Correct answer: A

Explanation

The correct answer is A, as the state backend is defined in the terraform block. The resource block is used for defining resources, the provider block specifies providers for the configuration, and the datasource block is utilized for data sources, none of which are related to setting a state backend.