Which argument(s) is (are) required when declaring a Terraform variable?

Which argument(s) is (are) required when declaring a Terraform variable?
A . type
B . default
C . description
D . All of the above
E . None of the above

Answer: B

Explanation:

The variable declaration can also include a default argument.

Reference: https://www.terraform.io/docs/language/values/variables.html

Latest TA-002-P Dumps Valid Version with 324 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
1 Comment
Inline Feedbacks
View all comments
jamo
jamo
2 years ago

answer is NONE OF THE ABOVE

»Arguments
Terraform CLI defines the following optional arguments for variable declarations:

default – A default value which then makes the variable optional.
type – This argument specifies what value types are accepted for the variable.
description – This specifies the input variable’s documentation.
validation – A block to define validation rules, usually in addition to type constraints.
sensitive – Limits Terraform UI output when the variable is used in configuration.