HashiCorp Certified: Terraform Associate — Question 275
How do you specify a module's version when publishing it to the public Terraform Module Registry?
Answer options
- A. The module's configuration page on the Terraform Module Registry
- B. Terraform Module Registry does not support versioning modules
- C. The release tags in the associated repo
- D. The module's Terraform code
Correct answer: C
Explanation
The correct answer is C, as the release tags in the associated repo are used to define the version of the module being published. Option A is incorrect because while the configuration page may contain version information, it does not specify the version itself. Option B is wrong since versioning is indeed supported. Option D is incorrect as the Terraform code does not inherently define the version for the registry.