nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #144

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.

The correct answer is B. False. False. Module variables are NOT automatically inherited from the parent module. Terraform treats each module as an isolated unit with its own scope. To pass values into a child module, you must explicitly declare input variables in the child module using 'variable' blocks, and th

Submitted by suresh_in· Apr 18, 2026Work with Terraform Modules

Question

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.

Options

  • ATrue
  • BFalse

How the community answered

(27 responses)
  • A
    11% (3)
  • B
    89% (24)

Explanation

False. Module variables are NOT automatically inherited from the parent module. Terraform treats each module as an isolated unit with its own scope. To pass values into a child module, you must explicitly declare input variables in the child module using 'variable' blocks, and then explicitly assign those values in the parent module's 'module' block. Nothing is implicitly passed down - every value the child module needs must be provided explicitly.

Topics

#modules#module variables#variable assignment#input variables

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice