Terraform Associate 004 Practice Test

Terraform Associate 004 Practice Test practice questions, page 6 of 7, with answer review and explanations.

Question 26

A variable block is shown in the Exhibit space on this page: You will use this variable as the value for the tags argument in several resources. The data format must be a set of key value pairs. Which type argument would you use?

  1. type = map(string)
  2. type = any
  3. type = list(string)
  4. type = object({ tags = string})

Question 27

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

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

Question 28

Terraform providers are part of the Terraform core binary.

  1. True
  2. False

Question 29

Where can Terraform not load a provider from?

  1. Provider plugin cache
  2. Source code
  3. Official HashiCorp distribution on releases.hashicorp.com
  4. Plugins directory

Question 30

terraform init creates an example main.tf file in the current directory.

  1. True
  2. False