フリー問題

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

問題文

A security group must allow traffic from a load balancer that the same configuration creates. The load balancer's address is only known after it exists. How should the configuration express this?

選択肢

  1. Reference the attribute and also add the explicit dependency meta-argument, since a reference by itself does not guarantee the ordering.
  2. Look up the load balancer with a data block in the same configuration, so that the value is read after it has been created and the ordering falls out of the read.
  3. Declare the address as an input variable and pass it in on the command line after the load balancer has been created.
  4. Reference the load balancer's attribute in the security group rule, which both supplies the value and establishes the dependency ordering between the two resources.

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

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