nerdexam
HashiCorp

TA-002-P · Question #103

The Terraform language does not support user-defined functions, and so only the functions built in to the language are available for use.

The correct answer is B. True. The Terraform language exclusively provides built-in functions and does not support the creation of custom, user-defined functions.

Understand Terraform basics

Question

The Terraform language does not support user-defined functions, and so only the functions built in to the language are available for use.

Options

  • AFalse
  • BTrue

How the community answered

(27 responses)
  • A
    11% (3)
  • B
    89% (24)

Why each option

The Terraform language exclusively provides built-in functions and does not support the creation of custom, user-defined functions.

AFalse

The statement is true; Terraform does not allow user-defined functions, making this choice incorrect.

BTrueCorrect

Terraform's configuration language (HCL) includes a comprehensive set of built-in functions for various operations. However, it does not offer a mechanism for users to define their own custom functions within the configuration files.

Concept tested: Terraform built-in functions

Source: https://developer.hashicorp.com/terraform/language/functions/standard

Topics

#Terraform functions#HCL limitations#language features#user-defined functions

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice