Exam Terraform-Associate-004 Topic 5 Question 144 Discussion
Actual exam question for HashiCorp's Terraform-Associate-004 exam
Question #: 144
Topic #: 5
Question #: 144
Topic #: 5
A Terraform local value can reference other Terraform local values.
Suggested Answer: A Vote an answer
Rationale for Correct Answer: Locals are evaluated as expressions, and one local can reference another using local. < name > . This supports building up derived values cleanly:
locals {
env = " prod "
app_name = " api-${local.env} "
}
Analysis of Incorrect Options (Distractors):
B (False): Incorrect-Terraform explicitly supports local-to-local references.
Key Concept: Local values (locals) and expression references.
Reference: Terraform Objectives - Read, Generate, and Modify Configurations (locals, expressions, references).
locals {
env = " prod "
app_name = " api-${local.env} "
}
Analysis of Incorrect Options (Distractors):
B (False): Incorrect-Terraform explicitly supports local-to-local references.
Key Concept: Local values (locals) and expression references.
Reference: Terraform Objectives - Read, Generate, and Modify Configurations (locals, expressions, references).
by Howar at Jul 14, 2026, 08:48 PM
0
0
0
10
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).