HashiCorp Certified: Terraform Associate — Question 34
If a module declares a variable with a default, that variable must also be defined within the module.
Answer options
- A. True
- B. False
Correct answer: B
Explanation
The correct answer is B because a variable can have a default value without needing to be explicitly defined in the module. Option A is incorrect as it asserts the opposite, which is not true in this context.