BlackFriday 2024! 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:

Miesha
5 months ago
I think TF_ENV is the correct prefix because it stands for Terraform environment variables.
upvoted 0 times
...
Karan
5 months ago
I think TF_ENV_VAR could also work, but I'm leaning towards TF_VAR.
upvoted 0 times
...
Annabelle
5 months ago
I believe TF_VAR is correct because it is commonly used in Terraform.
upvoted 0 times
...
Kimbery
5 months ago
I'm not sure, but I think it might be TF_VAR_NAME.
upvoted 0 times
...
Launa
5 months ago
I agree, TF_VAR seems like the right choice.
upvoted 0 times
...
Youlanda
5 months ago
I think the correct prefix string is TF_VAR.
upvoted 0 times
...
Sueann
5 months ago
That's a good point, but I'm sticking with TF_VAR as well
upvoted 0 times
...
Scarlet
5 months ago
I think TF_ENV_VAR could also work, it sounds similar to setting environment variables
upvoted 0 times
...
Lawanda
5 months ago
TF_VAR_NAME seems a bit too specific, I still think TF_VAR is the best choice
upvoted 0 times
...
Sueann
6 months ago
I'm not sure, but I think TF_VAR_NAME could also be a possible prefix
upvoted 0 times
...
Dana
6 months ago
I agree with TF_VAR makes sense for setting environment variables
upvoted 0 times
...
Lawanda
7 months ago
I think the correct prefix string is TF_VAR
upvoted 0 times
...
Ira
7 months 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
7 months ago
Haha, good one! But seriously, we need to figure this out. I really want to pass this exam.
upvoted 0 times
...
Ronald
7 months 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
7 months 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
7 months ago
You know, if I get this wrong, I'm going to feel like a total 'terraform'.
upvoted 0 times
...
Melodie
7 months 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
7 months ago
This question is really tricky, I'm not sure about the correct answer. Does anyone have any insights?
upvoted 0 times
Caitlin
6 months ago
User3
upvoted 0 times
...
Rosendo
6 months ago
User2
upvoted 0 times
...
Cristen
6 months ago
User1
upvoted 0 times
...
...
Gianna
7 months 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
7 months 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 months ago
Got it, thanks for clarifying!
upvoted 0 times
...
Chandra
7 months ago
Actually, the correct prefix string is TF_VAR_NAME.
upvoted 0 times
...
Marsha
7 months ago
Are you sure about that? I think it might be TF_ENV instead.
upvoted 0 times
...
Shawna
7 months ago
TF_VAR_NAME is correct.
upvoted 0 times
...
Glenn
7 months ago
No, I believe it's TF_VAR_NAME.
upvoted 0 times
...
Abel
7 months ago
I think it's TF_VAR.
upvoted 0 times
...
...
Adolph
8 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