nerdexam
HashiCorp

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

Interact with Terraform modules

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)
  • A
    3% (1)
  • B
    3% (1)
  • C
    8% (3)
  • D
    19% (7)
  • E
    68% (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.

ARequired input variables

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.

BOptional inputs variables and default values

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.

COutputs

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.

DAll of the above
ENone of the aboveCorrect

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

#Terraform Module Registry#Module Variables#Module Outputs#Module Metadata

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice