Which of the following describes a module source path that indicates a module from HashiCorp's registry?

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 of the following describes a module source path that indicates a module from HashiCorp's registry?

Explanation:
When you want a module from the Terraform Registry, you specify its location using a namespace/name pattern. The form hashicorp/consul/aws is the standard shorthand that tells Terraform to fetch this module from the official registry, mapping to registry.terraform.io/hashicorp/consul/aws. This concise, registry-focused syntax is what signals a HashiCorp registry module in typical configurations. The other formats point to different sources—local files on disk, a Git repository, or a fully qualified registry URL—so they’re not the Registry reference being tested here. Using the shorthand emphasizes pulling a public module from HashiCorp’s registry directly.

When you want a module from the Terraform Registry, you specify its location using a namespace/name pattern. The form hashicorp/consul/aws is the standard shorthand that tells Terraform to fetch this module from the official registry, mapping to registry.terraform.io/hashicorp/consul/aws. This concise, registry-focused syntax is what signals a HashiCorp registry module in typical configurations.

The other formats point to different sources—local files on disk, a Git repository, or a fully qualified registry URL—so they’re not the Registry reference being tested here. Using the shorthand emphasizes pulling a public module from HashiCorp’s registry directly.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy