フリー問題

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

問題文

A network module creates a subnet, and a separate configuration in another working directory needs the subnet identifier. What does the module's author need to do so that the value can be consumed?

選択肢

  1. Declare it as an output, and make sure the root module of the configuration that calls the module also exposes it as an output.
  2. Declare it as an output in the module, which is enough because module outputs are recorded in the state and can be read from there.
  3. Mark the output as non-sensitive, since sensitive outputs are the only ones that cannot be read across configurations.
  4. Publish it to a shared configuration store such as a key-value service, since outputs cannot cross working directory boundaries and the only supported way to share values is an external store.

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

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