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?
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.
│ 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
...
...
Log in to ExamTopics
Sign in:
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.
Simplon
5 months agoSimplon
5 months agohalfway
9 months, 3 weeks agosdm13168
10 months agoJhaggar
10 months agoNi33
10 months agoNi33
10 months, 1 week agoOleg_gol
10 months, 1 week agoszyd3rca
10 months ago