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
1Â year, 1Â month agoSimplon
1Â year, 1Â month agohalfway
1Â year, 6Â months agosdm13168
1Â year, 6Â months agoJhaggar
1Â year, 6Â months agoNi33
1Â year, 6Â months agoNi33
1Â year, 6Â months agoOleg_gol
1Â year, 6Â months agoszyd3rca
1Â year, 6Â months ago