Free Terraform Associate Exam Braindumps
HashiCorp Certified: Terraform Associate Questions 156–160 (page: 33)

Updated On: 10-Feb-2026

You need to write some Terraform code that adds 42 firewall rules to a security group as shown in the example.
What can you use to avoid writing 42 different nested ingress config blocks by hand?

  1. A count loop
  2. A for block
  3. A for each block
  4. A dynamic block

Answer(s): D



Which of the following is the safest way to inject sensitive values into a Terraform Cloud workspace?

  1. Write the value to a file and specify the file with the -var-file flag
  2. Set a value for the variable in the UI and check the "Sensitive" check box
  3. Edit the state file directly just before running terraform apply
  4. Set the variable value on the command line with the -var flag

Answer(s): B



terraform apply will fail if you have not am terraform plan first to update the plan output.

  1. True
  2. False

Answer(s): B



How would you reference the attribute "name" of this fictitious resource in HCL?

  1. resource.kubernetes_namespace.example.name
  2. kubernetes_namespace.test.name
  3. kubernetes_namespace.example.name
  4. data.kubernetes_namespace.name
  5. None of the above

Answer(s): C



A Terraform output that sets the "sensitive" argument to true will not store that value in the state file.

  1. True
  2. False

Answer(s): B



Viewing page 33 of 71
Viewing questions 161 - 165 out of 356 questions


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

AI Tutor AI Tutor 👋 I’m here to help!