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

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

    Correct Answer: A

    To specify a state backend in Terraform, you need to define it within the 'terraform' block. This is done using a nested 'backend' block inside the top-level 'terraform' block. The 'terraform' block is specifically designated for settings such as backend configuration, which determines where the state file is stored.

Discussion
EltoothOption: A

A is correct answer. "To configure a backend, add a nested backend block within the top-level terraform block. The following example configures the remote backend." https://www.terraform.io/language/settings/backends/configuration https://www.terraform.io/language/settings/backends/configuration#using-a-backend-block

BereOption: A

terraform { backend "remote" { hostname = "app.terraform.io" organization = "YourOrganization" workspaces { name = "your_workspace" } } }

Zam88Option: A

A. The terraform block

debabrata6983Option: A

A is Correct Answer

arunrkaushikOption: A

terraform { backend "consul" { address = "demo.consul.io" scheme = "https" path = "example_app/terraform_state" } }

Ni33Option: A

A for sure.

Power123Option: A

A is the correct ans

oab720Option: A

Tested in labs - terraform block

CHRIS12722222Option: A

terraform block