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
Question
Options
- AThe resource block
- BThe data source block
- CThe terraform block
- DThe provider block
How the community answered
(12 responses)- A8% (1)
- C92% (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
Community Discussion
No community discussion yet for this question.