nerdexam
HashiCorp

TA-002-P · Question #222

If you delete a remote backend from the configuration, will you need to rebuild your state files locally?

The correct answer is A. False. This is FALSE. When you remove a remote backend configuration and run terraform init, Terraform will prompt you to migrate your existing state from the remote backend back to the local backend automatically. The state file is copied locally - you do not need to rebuild it from…

Implement and maintain state

Question

If you delete a remote backend from the configuration, will you need to rebuild your state files locally?

Options

  • AFalse
  • BTrue

How the community answered

(26 responses)
  • A
    88% (23)
  • B
    12% (3)

Explanation

This is FALSE. When you remove a remote backend configuration and run terraform init, Terraform will prompt you to migrate your existing state from the remote backend back to the local backend automatically. The state file is copied locally - you do not need to rebuild it from scratch.

Topics

#Terraform State#Remote Backend#State Management#Backend Configuration

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice