Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Exam VA-002-P Topic 10 Question 81 Discussion

Actual exam question for HashiCorp's VA-002-P exam
Question #: 81
Topic #: 10
[All VA-002-P Questions]

Environment variables can be used to set variables. The environment variables must be in the format "____"_. Select the correct prefix string from the following list.

Show Suggested Answer Hide Answer
Suggested Answer: A

Environment variables can be used to set variables. The environment variables must be in the format TF_VAR_name and this will be checked last for a value. For example:

export TF_VAR_region=us-west-1

export TF_VAR_ami=ami-049d8641

export TF_VAR_alist='[1,2,3]'

export TF_VAR_amap='{ foo = 'bar', baz = 'qux' }'

https://www.terraform.io/docs/commands/environment-variables.html


Contribute your Thoughts:

Dana
1 days ago
I agree with TF_VAR makes sense for setting environment variables
upvoted 0 times
...
Lawanda
2 days ago
I think the correct prefix string is TF_VAR
upvoted 0 times
...
Ira
24 days ago
TF_VAR_NAME sounds like it might be right, since it includes the variable name. But I think the other options are more standard. Gotta go with TF_VAR on this one.
upvoted 0 times
...
Ettie
24 days ago
Haha, good one! But seriously, we need to figure this out. I really want to pass this exam.
upvoted 0 times
...
Ronald
25 days ago
I'm leaning towards option D. 'TF_ENV_VAR' sounds like it could be the correct format for environment variables in Terraform.
upvoted 0 times
...
Audry
26 days ago
Haha, I bet the exam question writer is sitting there chuckling, thinking 'let's see if they can remember the exact prefix!'. Well, joke's on them, I'm going with TF_VAR and I'm confident about it.
upvoted 0 times
...
Darrin
26 days ago
You know, if I get this wrong, I'm going to feel like a total 'terraform'.
upvoted 0 times
...
Melodie
27 days ago
I was leaning towards TF_ENV, since we're talking about environment variables here. But I guess TF_VAR makes more sense since it's specifically for Terraform variables. This exam is really testing the details, huh?
upvoted 0 times
...
Harley
27 days ago
This question is really tricky, I'm not sure about the correct answer. Does anyone have any insights?
upvoted 0 times
...
Gianna
28 days ago
TF_VAR for sure, that's what I learned in the Terraform training I took. You use that prefix to set variables that Terraform can then pick up and use in your configuration.
upvoted 0 times
...
Troy
30 days ago
Hmm, I'm not sure about that. I was thinking it might be TF_ENV_VAR, since that seems more descriptive of what we're trying to do. But I could be wrong, I'll have to double-check the Terraform documentation on this one.
upvoted 0 times
Chuck
7 days ago
Got it, thanks for clarifying!
upvoted 0 times
...
Chandra
8 days ago
Actually, the correct prefix string is TF_VAR_NAME.
upvoted 0 times
...
Marsha
9 days ago
Are you sure about that? I think it might be TF_ENV instead.
upvoted 0 times
...
Shawna
10 days ago
TF_VAR_NAME is correct.
upvoted 0 times
...
Glenn
11 days ago
No, I believe it's TF_VAR_NAME.
upvoted 0 times
...
Abel
12 days ago
I think it's TF_VAR.
upvoted 0 times
...
...
Adolph
1 months ago
This is a tricky one, the format of environment variables can be a bit confusing sometimes. I'd say the correct answer is TF_VAR, since that's the standard prefix used for Terraform environment variables.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77