Which of the following is a valid module source reference using Terraform Registry style?

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 is a valid module source reference using Terraform Registry style?

Explanation:
Using the Registry style means pointing to a module by its registry namespace, module name, and provider in a single string. The best choice uses three parts: hashicorp/consul/aws. This identifies a module published on the Terraform Registry under the HashiCorp namespace, with the name consul, for the AWS provider, and Terraform will fetch it from registry. The other options are different sourcing methods: a local path, a Git URL with a ref (Git source), or the full registry URL. While the full URL can also work, the Registry shorthand hashicorp/consul/aws is the canonical Registry-style reference.

Using the Registry style means pointing to a module by its registry namespace, module name, and provider in a single string. The best choice uses three parts: hashicorp/consul/aws. This identifies a module published on the Terraform Registry under the HashiCorp namespace, with the name consul, for the AWS provider, and Terraform will fetch it from registry. The other options are different sourcing methods: a local path, a Git URL with a ref (Git source), or the full registry URL. While the full URL can also work, the Registry shorthand hashicorp/consul/aws is the canonical Registry-style reference.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy