Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 152

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

    Correct Answer: A

    The option 'source = "./modulelversion=v1.0.0"' is not a valid source path for specifying a module. Valid local paths should not include version information directly in the path. Local paths should simply reference the directory, such as './module'. For remote modules, versioning information can be included, but this is done using a different syntax, such as appending a '?ref=v1.0.0' for GitHub repositories.

Discussion
depal_dhirOption: A

You don't use pipe "|" in the path

G4ExamsOption: A

A tricky question but ./ means its a local path and there are no versions in local modules so must be A I guess.

ZeppoonstreamOption: A

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.

BereOption: 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. }

HizumiOption: A

Answer is A. All other choices are the correct way to input the path. Reference: