Home » HashiCorp » Terraform Associate » Which argument(s) are required when declaring a Terraform variable?
Which argument(s) are required when declaring a Terraform variable?
A. type
B. default
C. description
D. All of the above
E. None of the above
Correct Answer: E
Explanation/Reference:
Explanation:
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. nullable – Specify if the variable can be null within the module.
https://www.terraform.io/language/values/variables#arguments
Download Printable PDF. VALID exam to help you PASS.
|
|