nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · 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.

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

Question

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

Options

  • ATrue
  • BFalse

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    88% (23)

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-004 Practice