Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 152 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 152
Topic #: 1
[All Terraform Associate Questions]

Which of the following is not valid source path for specifying a module?

  • A. source = "./modulelversion=v1.0.0"
  • B. source = "github.com/hashicorp/example?ref=v1.0.0"
  • C. source = "./module"
  • D. source = "hashicorp/consul/aws"
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
depal_dhir
Highly Voted 2 years, 2 months ago
Selected Answer: A
You don't use pipe "|" in the path
upvoted 7 times
...
Bere
Most Recent 10 months, 1 week ago
Selected Answer: A
Valid usage for a local path: module "example" { source = "./module" # Versioning for local paths is not applicable. You would control versioning with version control systems. }
upvoted 3 times
...
Zeppoonstream
1 year, 10 months ago
A. source = "./modulelversion=v1.0.0" is not a valid source path for specifying a module. When specifying a module, a valid source path must include the module name and the provider, if specified. In this case, "./modulelversion=v1.0.0" is not a valid source path because it's missing the module name and "l" is an invalid character for a version.
upvoted 3 times
...
G4Exams
2 years ago
Selected Answer: A
A tricky question but ./ means its a local path and there are no versions in local modules so must be A I guess.
upvoted 4 times
...
Hizumi
2 years, 2 months ago
Answer is A. All other choices are the correct way to input the path. Reference:
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...