Deployment, Provisioning, and Automation

Two deployment workers use the same remote Terraform state, and their apply operations can overlap. What should the operator enable to prevent simultaneous state modifications?

Show the answer

Correct answerC. State locking in a supported backend.

AWhy not this: Bucket versioning retains older object versions but does not provide mutual exclusion for Terraform operations.

BWhy not this: Provider constraints control provider version selection, not concurrent access to state.

CWhy this is right: A supported backend's state lock prevents simultaneous operations from modifying the same state.

DWhy not this: Termination protection prevents CloudFormation stack deletion, not concurrent Terraform operations.

State locking prevents concurrent Terraform operations from modifying the same state. Bucket versioning preserves previous state versions for recovery but does not prevent concurrent writes.