Which statement about private module sources is true?

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

Which statement about private module sources is true?

Explanation:
Terraform can source modules from private repositories, not just the public registry. You can point a module’s source to a private Git repository (for example, private repos on GitHub, GitLab, or Bitbucket) and provide the necessary credentials so Terraform can access and fetch the module. This access is typically done with SSH keys or tokens, or via a credential helper, allowing private SCMs to be used just like public ones. Because private sources are supported, the statement about private module sources being loadable from private SCM or private GitHub repositories is correct. The other options imply limitations that aren’t true—modules aren’t restricted to the public registry, GitHub isn’t off-limits for private modules, and sources don’t have to be local only.

Terraform can source modules from private repositories, not just the public registry. You can point a module’s source to a private Git repository (for example, private repos on GitHub, GitLab, or Bitbucket) and provide the necessary credentials so Terraform can access and fetch the module. This access is typically done with SSH keys or tokens, or via a credential helper, allowing private SCMs to be used just like public ones. Because private sources are supported, the statement about private module sources being loadable from private SCM or private GitHub repositories is correct. The other options imply limitations that aren’t true—modules aren’t restricted to the public registry, GitHub isn’t off-limits for private modules, and sources don’t have to be local only.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy