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
137 Views
(@finnecolton)
Posts: 729
Noble Member
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
 
Posted : 31/10/2022 5:39 am

Latest TA-002-P V1 Dumps Valid Version

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