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

Which backend does the Terraform CLI use by default?

    Correct Answer: D

    By default, the Terraform CLI uses the local backend to store the state file. The local backend stores the state as a file on the local filesystem. This makes it simple to use and requires no additional configuration, suitable for initial setups and testing. For storing state remotely or collaboratively, you would have to explicitly configure a different backend like Terraform Cloud, S3, or Consul in your configuration files.

Discussion
awsexamsOption: D

D. Local

JhaggarOption: D

The Terraform CLI uses the local backend by default, which stores the state file on the local disk of the machine running Terraform.

FarziWaliMarziOption: D

Local for sure

campsOption: D

D. Local By default, the Terraform CLI uses the local backend to store the state file. The local backend stores the state as a file on your local filesystem. If you want to use a different backend, such as a remote backend (e.g., Terraform Cloud) or other options like S3 or Consul, you need to configure the backend explicitly in your Terraform configuration files.

SilentMilliOption: D

The Terraform CLI uses a local backend by default, which stores the state of your infrastructure in a local file named terraform.tfstate. This backend is simple to use and requires no additional setup, making it a good option for getting started with Terraform.