nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #215

TERRAFORM-ASSOCIATE-004 Question #215: Real Exam Question with Answer & Explanation

The correct answer is B: False. Child modules do not automatically inherit variables from the parent module. To pass values from the parent module to the child module, you must explicitly define input variables in the child module and pass them in the parent module. module "example" { source = "./child_module"

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

Question

A child module can always access variables declared in its parent module.

Options

  • ATrue
  • BFalse

Explanation

Child modules do not automatically inherit variables from the parent module. To pass values from the parent module to the child module, you must explicitly define input variables in the child module and pass them in the parent module. module "example" { source = "./child_module"

Topics

#Module Variables#Module Inputs#Module Encapsulation#Data Flow Between Modules

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions