Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?

Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?
A . terraform destroy, then terraform apply
B . terraform init
C . terraform push
D . terraform apply

Answer: A

Explanation:

This command will initialize the new backend and prompt you to migrate the existing state file to the new location4. The other commands are not relevant for this task.

Latest TA-003-P Dumps Valid Version with 138 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments