TA-002-P · Question #16
TA-002-P Question #16: Real Exam Question with Answer & Explanation
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
Explanation
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.
Common mistakes.
- A. 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.
- B. 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.
- C. 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.
Concept tested. Terraform Module Registry documentation features
Reference. https://developer.hashicorp.com/terraform/registry/modules/publish
Topics
Community Discussion
No community discussion yet for this question.