HashiCorp Certified: Terraform Associate — Question 241
When developing a Terraform module, how would you specify the version when publishing it to the official Terraform Registry?
Answer options
- A. Terraform Registry does not support versioning modules.
- B. Mention it on the module’s configuration page on the Terraform Registry
- C. Tag a release in your module’s source control repository.
- D. Configure it in the module’s Terraform code.
Correct answer: C
Explanation
The correct answer is C, as tagging a release in the source control repository is the method used to specify the version of a module in the Terraform Registry. Option A is incorrect because the Terraform Registry does support versioning. Option B is not the correct approach, and option D does not specify the versioning process used by the Registry.