nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #227

Which argument can you use to prevent unexpected updates to a module's configuration when calling Terraform Registry modules?

The correct answer is C. version. The version argument in a module ensures Terraform uses a specific version of a module, preventing unintended updates. A (source) - Specifies the module source but does not control versioning. B (count) - Controls how many instances of a resource/module exist, not updates. D…

Interact with Terraform Modules

Question

Which argument can you use to prevent unexpected updates to a module's configuration when calling Terraform Registry modules?

Options

  • Asource
  • Bcount
  • Cversion
  • Dlifecycle

How the community answered

(44 responses)
  • A
    5% (2)
  • B
    14% (6)
  • C
    73% (32)
  • D
    9% (4)

Explanation

The version argument in a module ensures Terraform uses a specific version of a module, preventing unintended updates. A (source) - Specifies the module source but does not control versioning. B (count) - Controls how many instances of a resource/module exist, not updates. D (lifecycle) - Controls how resources behave but does not control module versioning.

Topics

#module versioning#version constraint#Terraform Registry#module configuration

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice