HashiCorp Certified: Terraform Associate — Question 240
Which method for sharing Terraform modules fulfills the following criteria:
1. Keeps the module configurations confidential within your organization.
2. Supports Terraform’s semantic version constraints.
3. Provides a browsable directory of your modules.
Answer options
- A. Public Terraform module registry.
- B. A subfolder within your workspace.
- C. HCP Terraform/Terraform Cloud private registry.
- D. A Git repository containing your modules.
Correct answer: C
Explanation
The correct answer is C because the HCP Terraform/Terraform Cloud private registry allows for confidentiality of module configurations, supports semantic versioning, and offers a browsable interface. Options A, B, and D do not meet all three criteria—A is public, B lacks a directory structure, and D may not ensure confidentiality.