Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 89


Which of the following is allowed as a Terraform variable name?

Show Answer
Correct Answer: B

According to the Terraform documentation, the name of a variable can be any valid identifier except certain reserved words, specifically source, version, providers, count, for_each, lifecycle, depends_on, and locals. Since 'name' is not listed among the reserved words, it is allowed as a Terraform variable name.

Discussion

6 comments
Sign in to comment
EltoothOption: B
Dec 29, 2023

B is correct answer : name "The name of a variable can be any valid identifier except the following: source, version, providers, count, for_each, lifecycle, depends_on, locals." https://www.terraform.io/language/values/variables

Zam88
Dec 19, 2023

The name of a variable can be any valid identifier except the following: source , version , providers , count , for_each , lifecycle , depends_on , locals . These names are reserved for meta-arguments in module configuration blocks, and cannot be declared as variable names. B

kopper2019Option: B
Feb 10, 2024

name is OK

Ahmad_Terraform
Jan 14, 2024

name is right

Power123
Sep 30, 2024

B is correct. name

Ni33Option: B
Nov 9, 2024

B is correct one.