# Terraform-Associate — Question 427

**Type:** multiple_choice
**Topics:** topic_1

## Question

If a module declares a variable with a default, that variable must also be defined within the module.

## Correct Answer

_See scenario._

## Explanation

Selected Answer: B
If a module declares a variable with a default value, it is not necessary to define the variable within the module calling the module. The module will automatically use the default value if a value is not explicitly assigned to the variable in the calling module

**Reference:** examtopics_top_comment

---
Source: https://hiexam.net/q/hashicorp/Terraform-Associate/427  
Practice (tracked): https://hiexam.net/study/Terraform-Associate/practice