nerdexam
HashiCorp

TA-002-P · Question #314

Anyone can publish and share modules on the Terraform Public Module Registry, and meeting the requirements for publishing a module is extremely easy. Select from the following list all valid requireme

The correct answer is C. The registry uses tags to identify module versions. D. Release tag names must be for the format x.y.z, and can optionally be prefixed with a v . E. The module must be on GitHub and must be a public repo.. To publish a module to the Terraform Public Module Registry, it must be hosted on a public GitHub repository, follow specific naming conventions, and use semantic versioning with tags.

Interact with Terraform modules

Question

Anyone can publish and share modules on the Terraform Public Module Registry, and meeting the requirements for publishing a module is extremely easy. Select from the following list all valid requirements. (select three)

Options

  • AThe module must be PCI/HIPPA compliant.
  • BModule repositories must use this three-part name format, terraform--.
  • CThe registry uses tags to identify module versions.
  • DRelease tag names must be for the format x.y.z, and can optionally be prefixed with a v .
  • EThe module must be on GitHub and must be a public repo.

How the community answered

(56 responses)
  • A
    2% (1)
  • B
    7% (4)
  • C
    91% (51)

Why each option

To publish a module to the Terraform Public Module Registry, it must be hosted on a public GitHub repository, follow specific naming conventions, and use semantic versioning with tags.

AThe module must be PCI/HIPPA compliant.

PCI/HIPAA compliance is a security and regulatory concern for the resources provisioned, not a direct requirement for publishing a module to the public registry.

BModule repositories must use this three-part name format, terraform--.

The description `terraform--` for the module repository naming format is too generic; the precise format required is `terraform-<PROVIDER>-<NAME>`.

CThe registry uses tags to identify module versions.Correct

The Terraform Public Module Registry utilizes Git tags within the repository to identify and manage different versions of published modules.

DRelease tag names must be for the format x.y.z, and can optionally be prefixed with a v .Correct

Release tag names for modules in the registry must adhere to semantic versioning, using the `x.y.z` format, which can optionally be prefixed with a 'v'.

EThe module must be on GitHub and must be a public repo.Correct

Modules intended for the Terraform Public Module Registry are required to be hosted in a public GitHub repository for discoverability and accessibility.

Concept tested: Terraform Public Module Registry requirements

Source: https://developer.hashicorp.com/terraform/registry/modules/publish

Topics

#Terraform Modules#Module Registry#Publishing Modules#Semantic Versioning

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice