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

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

You are creating a reusable Terraform configuration and want to include a billing_dept tag so your Finance team can track team-specific spending on resources. Which of the following billing_dept variable declarations will allow you to do this?

  • A.
  • B.
  • C.
  • D.
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
Simplon
1 year, 1 month ago
Selected Answer: C
Tested. All other answers returned an error.javascript:void(0)
upvoted 3 times
Simplon
1 year, 1 month ago
*Tested. All other answers returned an error. (the javascript:void(0) is a typing mistake on my part).
upvoted 1 times
...
...
halfway
1 year, 6 months ago
Selected Answer: C
It is C, optional, any data type is acceptable.
upvoted 1 times
...
sdm13168
1 year, 6 months ago
Selected Answer: C
tested, got error for A. But C verifed
upvoted 4 times
...
Jhaggar
1 year, 6 months ago
Selected Answer: B
type = optional(string)
upvoted 1 times
...
Ni33
1 year, 6 months ago
C is the correct answer. Tested and verified.
upvoted 2 times
...
Ni33
1 year, 6 months ago
Selected Answer: C
C is the correct option. All the arguments of variables are optional. A - optional is not a valid argument. B- optional(string) is not a valid argument value. D - default is not a valid argument value.
upvoted 2 times
...
Oleg_gol
1 year, 6 months ago
Selected Answer: B
variable "billing_dept "{ type = optional(string) }
upvoted 3 times
szyd3rca
1 year, 6 months ago
│ Error: Invalid type specification │ │ on main.tf line 15, in variable "billing_dept": │ 15: type = optional(string) │ │ Keyword "optional" is valid only as a modifier for object type attributes.
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 ...