Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 213 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 213
Topic #: 1
[All Terraform Associate Questions]

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

  • A. True
  • B. False
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Mail1964
Highly Voted 1 year, 4 months ago
Selected Answer: A
It is a poorly worded Q. Using output they are accessible and not without. But the Q only asks if they "are accessible" which is A. If the Q added "by default" on the end, then it would be B.
upvoted 10 times
...
camps
Highly Voted 1 year, 7 months ago
Selected Answer: B
B. False Variables declared within a module are not accessible outside of the module by default. To expose the values of those variables to other modules or the root configuration, you need to use output values. Output values are declared using the output block in the module, and they serve as a way to expose certain values from a module so that they can be consumed by other modules or configurations.
upvoted 6 times
...
princajen
Most Recent 1 year, 9 months ago
Selected Answer: B
B. False. Variables declared within a module have module-level scope and can only be accessed within the module. If a variable in a module needs to be accessed outside of the module, it must be exposed as an output.
upvoted 3 times
...
lezgino
1 year, 9 months ago
B is correct
upvoted 1 times
...
mocnak
1 year, 10 months ago
It is a bit confusing question, as you pointed out, they are accessible if they are passed out as output variables. so yes, they are. I am not sure if that's the "catch" of this question ..
upvoted 4 times
...
InformationOverload
1 year, 10 months ago
Selected Answer: B
these variables are not automatically accessible outside of the module unless they are explicitly passed out as output variables
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...