nerdexam
HashiCorp

TA-002-P · Question #145

What is the default backend for Terraform?

The correct answer is C. local. If no backend block is defined in a Terraform configuration, Terraform uses the local backend by default. With the local backend, state is stored as a file named terraform.tfstate in the current working directory. Consul, GCS, and etcd are all valid remote backend options but…

Implement and maintain state

Question

What is the default backend for Terraform?

Options

  • Aconsul
  • Bgcs
  • Clocal
  • Detcd

How the community answered

(44 responses)
  • A
    2% (1)
  • C
    93% (41)
  • D
    5% (2)

Explanation

If no backend block is defined in a Terraform configuration, Terraform uses the local backend by default. With the local backend, state is stored as a file named terraform.tfstate in the current working directory. Consul, GCS, and etcd are all valid remote backend options but must be explicitly configured.

Topics

#Terraform backends#State management#Default configuration#Local backend

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice