nerdexam
HashiCorpHashiCorp

TERRAFORM-ASSOCIATE-004 · Question #93

TERRAFORM-ASSOCIATE-004 Question #93: Real Exam Question with Answer & Explanation

The correct answer is A: Source = "module/consul''. In Terraform, a local module path must begin with ./ or ../ to be recognized as a filesystem path. The path "module/consul" (without a leading ./) does not have a recognized remote source scheme (no git://, https://, or registry namespace/module/provider pattern with three segmen

Submitted by femi9· Apr 18, 2026Work with Terraform Modules

Question

Which of the following module source paths does not specify a remote module?

Options

  • ASource = "module/consul''
  • BSource = `'githhub.comicrop/example''
  • CSource =''[email protected]:hasicrop/example.git''
  • DSource = `'hasicrop/consul/aws''

Explanation

In Terraform, a local module path must begin with ./ or ../ to be recognized as a filesystem path. The path "module/consul" (without a leading ./) does not have a recognized remote source scheme (no git://, https://, or registry namespace/module/provider pattern with three segments), making it a local-style path rather than a remote module reference. Options B and C use explicit GitHub URLs (github.com and [email protected]:), and option D follows the Terraform registry format (namespace/module/provider), all of which specify remote modules.

Topics

#Module sources#Local modules#Remote modules#Module paths

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 PracticeBrowse All TERRAFORM-ASSOCIATE-004 Questions