nerdexam
HashiCorpHashiCorp

TA-002-P · Question #332

TA-002-P Question #332: Real Exam Question with Answer & Explanation

The correct answer is C: Local modules support versions. Version constraints are supported only for modules installed from a module registry, such as the public Terraform Registry or Terraform Cloud's private module registry. Other module sources can provide their own versioning mechanisms within the source string itself, or might not

Interact with Terraform modules

Question

Which of the following statements about local modules is incorrect:

Options

  • ALocal modules are not cached by terraform init command
  • BLocal modules are sourced from a directory on disk
  • CLocal modules support versions
  • DAll of the above (all statements above are incorrect
  • ENone of the above (all statements above are correct)

Explanation

Version constraints are supported only for modules installed from a module registry, such as the public Terraform Registry or Terraform Cloud's private module registry. Other module sources can provide their own versioning mechanisms within the source string itself, or might not support versions at all. In particular, modules sourced from local file paths do not support version; since they're loaded from the same source repository, they always share the same version as their

Topics

#Local Modules#Terraform Modules#Module Sourcing#Module Versioning

Community Discussion

No community discussion yet for this question.

Full TA-002-P PracticeBrowse All TA-002-P Questions