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)- A30% (12)
- B70% (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.