フリー問題

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

問題文

An operator changed a tag on a resource by hand, and the team decides the hand-made value should win from now on. Which approach expresses that?

選択肢

  1. Run the state removal command for that single resource and import it again, which records the current values as the desired state.
  2. Add the lifecycle argument that ignores changes for that argument, so Terraform stops proposing to revert it.
  3. Remove the tag argument from the resource block, since an argument that is not declared is left to the provider and the hand-made value therefore persists.
  4. Run apply in refresh-only mode, which records the hand-made value and therefore makes it the value Terraform will keep.

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

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