HashiCorp Certified: Terraform Associate — Question 11
Which argument(s) is (are) required when declaring a Terraform variable?
Answer options
- A. type
- B. default
- C. description
- D. All of the above
- E. None of the above
Correct answer: E
Explanation
When declaring a variable in Terraform, none of the arguments such as type, default, or description are mandatory; they are optional. Therefore, the correct answer is E, as you can declare a variable without any of these arguments. Options A, B, and C imply that at least one of those arguments is required, which is incorrect.