フリー問題

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

問題文

A team must bring 40 existing resources under management and wants the process to run as part of their normal pull-request pipeline, with the generated configuration reviewed before anything is applied. Which mechanism fits?

選択肢

  1. Add import blocks to the configuration and run apply, since the apply generates the configuration for any imported resource that is not already declared and commits it to the working directory.
  2. Use the state removal command on each resource first, then apply, since importing requires a clean state.
  3. Run the import command 40 times from a script, then run plan and review the diff.
  4. Add import blocks to the configuration and run plan with the option that writes generated configuration to a file, then review that file.

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

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