Free Terraform Associate 004 Exam Braindumps
Terraform Associate 004 Questions 76–80 (page: 17)

Updated On: 10-Feb-2026

How does Terraform determine dependencies between resources?

  1. Terraform requires resource dependencies to be defined as modules and sourced in order
  2. Terraform automatically builds a resource graph based on resources provisioners, special meta-
    parameters, and the stale file (if present}
  3. Terraform requires resources in a configuration to be listed m the order they will be created to determine dependencies
  4. Terraform requires all dependencies between resources to be specified using the depends_on parameter

Answer(s): B

Explanation:

This is how Terraform determines dependencies between resources, by using the references between them in the configuration files and other factors that affect the order of operations.



What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

  1. Terraform plan ­refresh-only
  2. Terraform show ­json
  3. Terraform apply ­lock-false
  4. Terraform plan target-state

Answer(s): A

Explanation:

This is the command that always causes a state file to be updated with changes that might have been made outside of Terraform, as it will only refresh the state file with the current status of the real resources, without making any changes to them or creating a plan.



You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out.
Which of the following would achieve this?

  1. Set verbose for each provider in your Terraform configuration
  2. Set the environment variable TF_LOG_TRACE
  3. Set the environment variable TF_LOG_PATH
  4. Set the environment variable TF_log_TRACE

Answer(s): B

Explanation:

This will enable additional logging messages to find out from which paths Terraform is loading providers referenced in your Terraform configuration files, as it will set the log level to TRACE, which is the most verbose and detailed level.



Which of the following is not a valid Terraform collection type?

  1. Tree
  2. Map
  3. List
  4. set

Answer(s): A

Explanation:

This is not a valid Terraform collection type, as Terraform only supports three collection types: list, map, and set. A tree is a data structure that consists of nodes with parent-child relationships, which is not supported by Terraform.



A module can always refer to all variables declared in its parent module.

  1. True
  2. False

Answer(s): B

Explanation:

A module cannot always refer to all variables declared in its parent module, as it needs to explicitly declare input variables and assign values to them from the parent module's arguments. A module cannot access the parent module's variables directly, unless they are passed as input arguments.



Viewing page 17 of 53
Viewing questions 81 - 85 out of 147 questions


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

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