You also have a def...
 
Notifications
Clear all

You also have a defined the following environment variables in your shell:

1 Posts
1 Users
0 Likes
200 Views
(@colmenerocarmelo)
Noble Member
Joined: 2 years ago
Posts: 746
Topic starter  

You have a Terraform configuration file where a variable itemNum is defined as follows:

variable "itemNum" { default = 3}

You also have a defined the following environment variables in your shell: TF_itemNum =6, TF_VAR_itemNum =9. You also have a terraform.tfvars file with the following contents

itemNum = 7

When you run the following apply command, what is the value assigned to the itemNum variable?

terraform apply -var itemNum =4

  • A . 10
  • B . 6
  • C . 1
  • D . 4
  • E . 3

Show Answer Hide Answer

Suggested Answer: D

Explanation:

The -var and -var-file methods of assigning variables have the highest precedence. https://www.terraform.io/docs/configuration/variables.html

   
Quote

Latest HashiCorp TA-002-P Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: