nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #138

Variables declared within a module are accessible outside of the module.

The correct answer is B. False. Variables declared within a module are only accessible within that module, unless they are explicitly exposed as output values.

Interact with Terraform Modules

Question

Variables declared within a module are accessible outside of the module.

Options

  • ATrue
  • BFalse

How the community answered

(40 responses)
  • A
    30% (12)
  • B
    70% (28)

Explanation

Variables declared within a module are only accessible within that module, unless they are explicitly exposed as output values.

Topics

#module variables#variable scope#module encapsulation

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice