nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #90

HashiCorp Configuration Language (HCL) supports user-denned functions.

The correct answer is B. False. HashiCorp Configuration Language (HCL) does not support user-defined functions. You can only use the built-in functions that are provided by the language. The built-in functions allow you to perform various operations and transformations on values within expressions. The…

Submitted by helene.fr· Apr 18, 2026Work with Terraform Configurations

Question

HashiCorp Configuration Language (HCL) supports user-denned functions.

Options

  • ATrue
  • BFalse

How the community answered

(61 responses)
  • A
    11% (7)
  • B
    89% (54)

Explanation

HashiCorp Configuration Language (HCL) does not support user-defined functions. You can only use the built-in functions that are provided by the language. The built-in functions allow you to perform various operations and transformations on values within expressions. The general syntax for function calls is a function name followed by comma-separated arguments in parentheses, such as max(5, 12, 9). You can find the documentation for all of the available built-in functions in the Terraform Registry or the Packer Documentation, depending on which tool you are using.

Topics

#HCL#Language features#User-defined functions#Configuration syntax

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice