Moving from local backend to remote backend, which backend would not work?

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

Moving from local backend to remote backend, which backend would not work?

Explanation:
The key idea is that remote backends must provide safe, coordinated access to the Terraform state so multiple users or processes can work without corrupting it. Git isn’t designed for that role: there’s no built-in, reliable locking or atomic update mechanism for state across concurrent operations. Pushing a new state file to a Git repository can lead to conflicts, corrupt state, or race conditions, and sensitive data in the state could end up in the repository history. In contrast, backends like Amazon S3 (often with DynamoDB for locking), Artifactory, and Terraform Cloud are built to store state remotely with proper locking, versioning, and concurrency control, making them suitable for moving from a local backend. Therefore, Git would not work as a remote backend for Terraform state.

The key idea is that remote backends must provide safe, coordinated access to the Terraform state so multiple users or processes can work without corrupting it. Git isn’t designed for that role: there’s no built-in, reliable locking or atomic update mechanism for state across concurrent operations. Pushing a new state file to a Git repository can lead to conflicts, corrupt state, or race conditions, and sensitive data in the state could end up in the repository history. In contrast, backends like Amazon S3 (often with DynamoDB for locking), Artifactory, and Terraform Cloud are built to store state remotely with proper locking, versioning, and concurrency control, making them suitable for moving from a local backend. Therefore, Git would not work as a remote backend for Terraform state.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy