nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #152

Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:

The correct answer is D. Discouraged. Changing the Terraform backend after performing the initial terraform apply is technically possible but strongly discouraged. This is because changing backends can lead to complexities in state management, requiring manual intervention such as state migration to ensure…

Implement and maintain state

Question

Changing the Terraform backend from the default "local" backend to a different one after performing your first terrafom apply is:

Options

  • AOptional
  • BImpossible
  • CMandatory
  • DDiscouraged

How the community answered

(54 responses)
  • A
    2% (1)
  • B
    11% (6)
  • C
    7% (4)
  • D
    80% (43)

Explanation

Changing the Terraform backend after performing the initial terraform apply is technically possible but strongly discouraged. This is because changing backends can lead to complexities in state management, requiring manual intervention such as state migration to ensure consistency. Terraform's documentation and best practices advise planning the backend configuration carefully before applying Terraform configurations to avoid such changes.

Topics

#remote backend#backend migration#state backend#best practices

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice