Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 204 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 204
Topic #: 1
[All Terraform Associate Questions]

You want to tag multiple resources with a string that is a combination of a generated random_id and a variable.

How should you use the same value in all these resources without repeating the random_id and variable in each resource?

  • A. Local values
  • B. Data source
  • C. Modules
  • D. Outputs
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
ArizonaClassics
Highly Voted 1 year, 10 months ago
A is correct: Local values: A local value assigns a name to an expression, so you can use the name multiple times within a module instead of repeating the expression. https://developer.hashicorp.com/terraform/language/values/locals
upvoted 7 times
...
Darshan07
Most Recent 8 months, 4 weeks ago
Selected Answer: A
A is the correct option
upvoted 1 times
...
camps
1 year, 7 months ago
Selected Answer: A
A. Local values
upvoted 3 times
...
lezgino
1 year, 9 months ago
A is correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...