hiexam
hashicorp · Terraform-Associate · Q427 · multiple_choice · topic_1

If a module declares a variable with a default, that variable must also be defined within the module.

If a module declares a variable with a default, that variable must also be defined within the module.
  • A.True
  • B.False
Explanation
Selected Answer: B If a module declares a variable with a default value, it is not necessary to define the variable within the module calling the module. The module will automatically use the default value if a value is not explicitly assigned to the variable in the calling module

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.