Terraform-Associate-004 practice question 12 of 35
All standard backend types support state locking, and remote operations like plan, apply, and destroy.
Full set: 360 questionsThe statement is false for two primary reasons. First, not all standard backend types support state locking. A notable example is the default local backend, which stores the state file on the local filesystem and does not implement any locking mechanism. Second, remote operations (executing plan, apply, etc., in a remote environment) are a specific feature of certain backends, primarily the remote backend which integrates with Terraform Cloud and Terraform Enterprise. Most other backends, such as s3, azurerm, or gcs, provide remote state storage and locking, but the Terraform operations themselves are still executed on the local machine where the commands are run.
The statement "True" is incorrect because the claim "All standard backend types" is an absolute that is disproven by counterexamples. The local backend does not support locking, and backends like s3 or gcs do not support remote operations; they only provide a remote location for state file storage and a mechanism for locking.
1. HashiCorp Terraform Documentation, "State Locking": This document explicitly states that locking is not a universal feature. "Not all backends support locking. The documentation for each backend includes details about whether it supports locking." This directly refutes the first part of the question.
Source: HashiCorp, Terraform Documentation, Language, State, "State Locking".
Reference: developer.hashicorp.com/terraform/language/state/locking
2. HashiCorp Terraform Documentation, "Backend Type: local": The documentation for the standard local backend makes no mention of locking capabilities, as it is intended for individual use where concurrent operations are not a concern. This serves as a specific example of a standard backend without locking.
Source: HashiCorp, Terraform Documentation, Language, Settings, Backends, "Standard Backends: local".
Reference: developer.hashicorp.com/terraform/language/settings/backends/local
3. HashiCorp Terraform Documentation, "Backend Type: remote": This page details the functionality of the remote backend, which is designed for Terraform Cloud and Enterprise. It describes remote operations as a key feature: "The remote backend can also be configured to execute Terraform operations in a remote environment..." This highlights that remote execution is a specific feature of this backend, not a general feature of all backends.
Source: HashiCorp, Terraform Documentation, Language, Settings, Backends, "Standard Backends: remote".
Reference: developer.hashicorp.com/terraform/language/settings/backends/remote
4. HashiCorp Terraform Documentation, "Backend Type: s3": The documentation for the s3 backend shows that it supports locking via a DynamoDB table, but it does not perform remote operations. The plan and apply commands are executed locally, accessing the state file stored remotely in the S3 bucket. This distinguishes remote state storage from remote operations.
Source: HashiCorp, Terraform Documentation, Language, Settings, Backends, "Standard Backends: s3".
Reference: developer.hashicorp.com/terraform/language/settings/backends/s3 (See section on "State Locking and Consistency").
Keep practicing
Take the free Terraform-Associate-004 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other Terraform-Associate-004 practice questions
- Question 1You should run terraform fnt to rewrite all Terraform configurations within the current w…
- Question 2Module variable assignments are inherited from the parent module and you do not need to e…
- Question 3terraform validate confirms thesyntaxof Terraform files.
- Question 4Using the terraform state rm command against a resource will destroy it.
- Question 5Variables declared within a module are accessible outside of the module.
- Question 6terraform init retrieves and caches the configuration for all remote modules.
