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

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.