In a module block for a registry module, what does the source attribute specify?

Prepare for the HashiCorp Terraform Associate Exam with quizzes, flashcards, and multiple-choice questions. Each question includes hints and explanations. Boost your confidence and ace your exam!

Multiple Choice

In a module block for a registry module, what does the source attribute specify?

Explanation:
The source attribute defines where Terraform fetches the module’s code. For a module from the registry, it specifies the address of the module in the registry—the URL or path Terraform uses to obtain the configuration. That’s why this is the best choice: it directly answers “where is the module sourced from?” The version is a separate setting you can supply as its own attribute, and the path for artifacts or the module name are not what the source attribute designates.

The source attribute defines where Terraform fetches the module’s code. For a module from the registry, it specifies the address of the module in the registry—the URL or path Terraform uses to obtain the configuration. That’s why this is the best choice: it directly answers “where is the module sourced from?” The version is a separate setting you can supply as its own attribute, and the path for artifacts or the module name are not what the source attribute designates.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy