nerdexam
HashiCorp

TA-002-P · Question #380

Choose the answer that correctly completes the sentence: _______backends support state locking.

The correct answer is D. Some. Not all Terraform backends inherently support state locking; however, many remote backends offer this critical feature for collaborative environments.

Implement and maintain state

Question

Choose the answer that correctly completes the sentence: _______backends support state locking.

Options

  • AAll
  • BNo
  • COnly local
  • DSome

How the community answered

(35 responses)
  • A
    9% (3)
  • B
    3% (1)
  • C
    3% (1)
  • D
    86% (30)

Why each option

Not all Terraform backends inherently support state locking; however, many remote backends offer this critical feature for collaborative environments.

AAll

The local backend does not support state locking, meaning not all backends have this feature.

BNo

Many remote backends, like S3 or Azure Storage, do support state locking, so 'No' is incorrect.

COnly local

The local backend is specifically one that does not support state locking, making this choice incorrect.

DSomeCorrect

While the local backend does not support state locking, many remote backends, such as Amazon S3, Azure Blob Storage, HashiCorp Consul, and Terraform Cloud, explicitly support state locking to prevent concurrent operations from corrupting the state file.

Concept tested: Terraform backend state locking

Source: https://developer.hashicorp.com/terraform/language/settings/backends/locking

Topics

#Terraform backends#State locking#Remote state management

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice