HashiCorp Certified: Terraform Associate — Question 116
Variables declared within a module are accessible outside of the module.
Answer options
- A. True
- B. False
Correct answer: B
Explanation
The correct answer is B because variables declared within a module have a local scope and are not accessible outside of it. This encapsulation is a key principle in programming, ensuring that module internals remain hidden from the outside, which helps maintain data integrity.