フリー問題

HashiCorp Certified: Terraform Associate (004) のフリー問題 6 / 20 問目

問題文

A working directory was initialized with a local backend. The team now wants the state to live in a shared remote backend, and they want the existing state carried over. What must they do?

選択肢

  1. Copy the state file over by hand, then change the block.
  2. Change the backend block and run terraform init with the option that ignores the existing configuration, which will then pick up the state automatically.
  3. Change the backend block and run terraform apply, which will detect that the state location moved and write the state to the new location as part of the next successful run.
  4. Change the backend block and run terraform init with the option that copies the existing state to the new backend.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。