HashiCorp Certified: Terraform Associate Variable Practice Questions
The free HashiCorp Certified: Terraform Associate questions that deal with variable, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #7
Which of the following is allowed as a Terraform variable name?
Correct answer: B
Explanation
"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
Question #9
You have declared a variable called var.list which is a list of objects that all have an attribute id. Which options will produce a list of the IDs? (Choose two.)
Select 2 answers.
Correct answer: B, D
Explanation
https://www.terraform.io/language/expressions/splat A splat expression provides a more concise way to express a common operation that could otherwise be performed with a for expression.
Continue with HashiCorp Certified: Terraform Associate
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in HashiCorp Certified: Terraform Associate, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
All HashiCorp Certified: Terraform Associate practice questions →
