nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #44

What does state looking accomplish?

The correct answer is B. Blocks Terraform commands from modifying, the state file. This is what state locking accomplishes, by preventing other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss.

Implement and maintain state

Question

What does state looking accomplish?

Options

  • APrevent accidental Prevent accident deletion of the state file
  • BBlocks Terraform commands from modifying, the state file
  • CCopies the state file from memory to disk
  • DEncrypts any credentials stored within the state file

How the community answered

(29 responses)
  • A
    3% (1)
  • B
    83% (24)
  • C
    10% (3)
  • D
    3% (1)

Explanation

This is what state locking accomplishes, by preventing other users from modifying the state file while a Terraform operation is in progress. This prevents conflicts and data loss.

Topics

#state locking#concurrent access#state management#remote backends

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice