Free Terraform Associate Exam Braindumps (page: 24)

Page 23 of 113

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

  1. count
  2. name
  3. source
  4. version

Answer(s): 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



What type of block is used to construct a collection of nested configuration blocks?

  1. for_each
  2. repeated
  3. nesting
  4. dynamic

Answer(s): D


Reference:

https://www.terraform.io/language/expressions/dynamic-blocks



Module variable assignments are inherited from the parent module and do not need to be explicitly set.

  1. True
  2. False

Answer(s): B



If writing Terraform code that adheres to the Terraform style conventions, how would you properly indent each nesting level compared to the one above it?

  1. With four spaces
  2. With a tab
  3. With three spaces
  4. With two spaces

Answer(s): D


Reference:

https://www.terraform.io/language/syntax/style#style-conventions






Post your Comments and Discuss HashiCorp Terraform Associate exam with other Community members:

Terraform Associate Discussions & Posts