nerdexam
HashiCorp

TA-002-P · Question #63

A Terraform local value can reference other Terraform local values.

The correct answer is A. True. Terraform local values can reference other local values, allowing for complex calculations and data transformations within the configuration.

Understand Terraform basics

Question

A Terraform local value can reference other Terraform local values.

Options

  • ATrue
  • BFalse

How the community answered

(19 responses)
  • A
    89% (17)
  • B
    11% (2)

Why each option

Terraform local values can reference other local values, allowing for complex calculations and data transformations within the configuration.

ATrueCorrect

Local values, defined using the 'locals' block, support referencing other local values within the same block or different blocks. Terraform automatically resolves the dependencies between these local values, ensuring that they are evaluated in the correct order.

BFalse

Concept tested: Terraform local value referencing

Source: https://developer.hashicorp.com/terraform/language/values/locals

Topics

#Terraform locals#local values#configuration references

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice