試験Terraform-Associate-004 トピック4 問題221 スレッド

HashiCorp Terraform-Associate-004のリアル試験問題集
問題 #: 221
トピック #: 4
Which argument can you set on a module block to prevent Terraform from updating the module's configuration during an init or get operation?

おすすめの解答:A 解答を投票する

Rationale for Correct answer: Setting the module version (for registry modules) pins the module release Terraform will use. By pinning the version, Terraform will not "update" the module to newer releases during terraform init -upgrade or terraform get -update unless you change the version constraint. This is the standard way to control module updates and keep module code stable across runs.
Analysis of Incorrect Options (Distractors):
B (lifecycle): lifecycle is for resources, not module blocks.
C (count): count controls how many module instances are created; it doesn't control module source updates.
D (source): source tells Terraform where the module comes from; it doesn't prevent updates by itself (a VCS/ref pin would be done in the source string, but the module block argument that achieves this in the typical module workflow is version for registry modules).
Key Concept: Module version pinning to control module upgrades.
Reference:

Asaoka 2026-07-24 11:01:27

コメント

正解:
?」こちらは投票コメントになっております。普通のコメントに切り替えます。
ニックネーム: 送信 キャンセル
投票コメントをあげるごとに、選択した解答の投票数を1つ増やすことができます。

他人の解答コメントを賛成するのも、その解答に一票を入れることになります。したがって、すでに同じ意見の投票コメントが存在する場合、新規コメントをする代わりに賛成することもできます。

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡