フリー問題

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

問題文

A configuration must create a bucket in one region and a replica bucket in a second region, using the same provider type. Which approach expresses this correctly?

選択肢

  1. Declare two provider blocks of the same type, give the second one an alias, and set the provider argument on the resources that should use the second configuration.
  2. Split the configuration into two working directories, one per region, since a single working directory can hold only one configuration per provider type and the two buckets therefore cannot share a plan.
  3. Declare two provider blocks of the same type without aliases, one for each of the two regions, and Terraform will match each resource to the closest one in the file.
  4. Declare one provider block and set the region argument on each resource that needs the second region.

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

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