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 159 discussion

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

How would you reference the attribute "name" of this fictitious resource in HCL?

  • A. resource.kubernetes_namespace.example.name
  • B. kubernetes_namespace.test.name
  • C. kubernetes_namespace.example.name
  • D. data.kubernetes_namespace.name
  • E. None of the above
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Hizumi
Highly Voted 2 years, 2 months ago
Correct answer is C. References to Resource Attributes Doc: https://www.terraform.io/language/expressions/references#references-to-resource-attributes
upvoted 6 times
...
090200f
Most Recent 4 months ago
Selected Answer: C
C is correct answer no need to spllly mention resource here
upvoted 1 times
...
tycho
1 year, 7 months ago
Answer C; that would be the equivalent to kubectl create ns :)
upvoted 1 times
...
InformationOverload
1 year, 10 months ago
Selected Answer: C
C looks fine to me!
upvoted 2 times
...
depal_dhir
2 years, 2 months ago
Selected Answer: C
https://www.terraform.io/language/expressions/references#references-to-resource-attributes
upvoted 3 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 ...