nerdexam
HashiCorpHashiCorp

TA-002-P · Question #446

TA-002-P Question #446: Real Exam Question with Answer & Explanation

The correct answer is B: False. Modules do not inherit variables from the parent module. All modules are self-contained units. So you have to explicitly define variables in the child module, and then explicit set these variables in the parent module, when you instantiate the child module.

Interact with Terraform modules

Question

A module can always refer to all variables declared in its parent module.

Options

  • ATrue
  • BFalse

Explanation

Modules do not inherit variables from the parent module. All modules are self-contained units. So you have to explicitly define variables in the child module, and then explicit set these variables in the parent module, when you instantiate the child module.

Topics

#modules#module variables#module scope#data passing

Community Discussion

No community discussion yet for this question.

Full TA-002-P PracticeBrowse All TA-002-P Questions