TERRAFORM-ASSOCIATE-004 · Question #93
Which of the following module source paths does not specify a remote module?
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
Question
Options
- ASource = "module/consul''
- BSource = `'githhub.comicrop/example''
- CSource =''[email protected]:hasicrop/example.git''
- DSource = `'hasicrop/consul/aws''
How the community answered
(53 responses)- A89% (47)
- B2% (1)
- C8% (4)
- D2% (1)
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
Community Discussion
No community discussion yet for this question.