nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #163

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

The correct answer is C. The terraform block. In Terraform, the backend configuration, which includes details about where and how state is stored, is specified within the terraform block of your configuration. This block is the correct place to define the backend type and its configuration parameters, such as the location of

Submitted by klara.se· Apr 18, 2026Manage Terraform State

Question

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

Options

  • AThe resource block
  • BThe data source block
  • CThe terraform block
  • DThe provider block

How the community answered

(12 responses)
  • A
    8% (1)
  • C
    92% (11)

Explanation

In Terraform, the backend configuration, which includes details about where and how state is stored, is specified within the terraform block of your configuration. This block is the correct place to define the backend type and its configuration parameters, such as the location of the state file for a local backend or the bucket details for a remote backend like S.

Topics

#Terraform configuration#State backend#terraform block#Remote state

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice