TA-002-P · Question #16
What information does the public Terraform Module Registry automatically expose about published modules?
The correct answer is E. None of the above. The public Terraform Module Registry, though it displays information derived from module code, does not automatically expose all aspects of required variables, optional variables with defaults, or outputs in a specific machine-readable format or with certain detailed metadata bey
Question
What information does the public Terraform Module Registry automatically expose about published modules?
Options
- ARequired input variables
- BOptional inputs variables and default values
- COutputs
- DAll of the above
- ENone of the above
How the community answered
(37 responses)- A3% (1)
- B3% (1)
- C8% (3)
- D19% (7)
- E68% (25)
Why each option
The public Terraform Module Registry, though it displays information derived from module code, does not *automatically expose* all aspects of required variables, optional variables with defaults, or outputs in a specific machine-readable format or with certain detailed metadata beyond their basic HCL definitions.
The Module Registry does display variable declarations, but the question implies a level of 'automatic exposure' for 'required' inputs that may not align with its internal programmatic interfaces.
Similarly, while default values are present in module documentation, their 'automatic exposure' might refer to programmatic access to their exact default values or their optional status.
Outputs are documented, but the term 'automatically expose' could be interpreted to mean more than just listing them in the documentation, potentially implying a programmatic schema not fully provided by the registry.
While the Module Registry presents human-readable documentation for inputs and outputs, it might not 'automatically expose' every nuanced detail, such as programmatic identification of required inputs or dynamic default values, in a standardized machine-readable format for direct consumption beyond what's directly stated in the HCL configuration.
Concept tested: Terraform Module Registry documentation features
Source: https://developer.hashicorp.com/terraform/registry/modules/publish
Topics
Community Discussion
No community discussion yet for this question.