nerdexam
HashiCorp

TA-002-P · Question #188

Which of the following variable definition files will terraform load automatically?

The correct answer is B. Any files with names ending in .auto.tfvars.json C. terraform.tfvars D. terraform.tfvars.json. Terraform also automatically loads a number of variable definitions files if they are present: Files named exactly terraform.tfvars or terraform.tfvars.json. Any files with names ending in .auto.tfvars or .auto.tfvars.json.

Understand Terraform basics

Question

Which of the following variable definition files will terraform load automatically?

Options

  • Aterraform.tfvar
  • BAny files with names ending in .auto.tfvars.json
  • Cterraform.tfvars
  • Dterraform.tfvars.json

How the community answered

(28 responses)
  • A
    11% (3)
  • B
    89% (25)

Explanation

Terraform also automatically loads a number of variable definitions files if they are present: Files named exactly terraform.tfvars or terraform.tfvars.json. Any files with names ending in .auto.tfvars or .auto.tfvars.json.

Topics

#Terraform Variables#Variable Files#Automatic Loading#Configuration Loading

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice