Which of the following is a local module source path?

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 local module source path?

Explanation:
In Terraform, a local module source uses a filesystem path, typically relative or absolute. The path that starts with ./ is a relative path from the current location, pointing to the modules/consul directory on disk. Terraform will load the module code directly from that local directory. The other options refer to remote sources: a Git URL over SSH, a GitHub URL without the proper remote syntax, and a Terraform registry namespace/name/provider. Those are not local filesystem paths, so they aren’t local module sources.

In Terraform, a local module source uses a filesystem path, typically relative or absolute. The path that starts with ./ is a relative path from the current location, pointing to the modules/consul directory on disk. Terraform will load the module code directly from that local directory.

The other options refer to remote sources: a Git URL over SSH, a GitHub URL without the proper remote syntax, and a Terraform registry namespace/name/provider. Those are not local filesystem paths, so they aren’t local module sources.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy