Free Terraform Associate 004 Exam Braindumps
Terraform Associate 004 Questions 61–65 (page: 14)

Updated On: 10-Feb-2026

Terraform variable names are saved in the state file.

  1. True
  2. False

Answer(s): B

Explanation:

Terraform variable names are not saved in the state file, only their values are. The state file only stores the attributes of the resources and data sources that are managed by Terraform, not the variables that are used to configure them.



You have created a main.tf Terraform configuration consisting of an application server, a database and a load balanced. You ran terraform apply and Terraform created all of the resources successfully.

Now you realize that you do not actually need the load balancer, so you run terraform destroy without any flags.
What will happen?

  1. Terraform will prompt you to pick which resource you want to destroy
  2. Terraform will destroy the application server because it is listed first in the code
  3. Terraform will prompt you to confirm that you want to destroy all the infrastructure
  4. Terraform will destroy the main, tf file
  5. Terraform will immediately destroy all the infrastructure

Answer(s): C

Explanation:

This is what will happen if you run terraform destroy without any flags, as it will attempt to delete all the resources that are associated with your current working directory or workspace. You can use the - target flag to specify a particular resource that you want to destroy.



How can a ticket-based system slow down infrastructure provisioning and limit the ability to scale? Choose two correct answers.

  1. End-users have to request infrastructure changes
  2. Ticket based systems generate a full audit trail of the request and fulfillment process
  3. Users can access catalog of approved resources from drop down list in a request form
  4. The more resources your organization needs, the more tickets your infrastructure team has to process

Answer(s): A

Explanation:

These are some of the ways that a ticket-based system can slow down infrastructure provisioning and limit the ability to scale, as they introduce delays, bottlenecks, and manual interventions in the process of creating and modifying infrastructure.



You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.

What will happen you run terraform apply in the working directory again?

  1. Terraform will remove the virtual machine from the state file, but the resource will still exist
  2. Nothing
  3. Terraform will error
  4. Terraform will destroy the virtual machine

Answer(s): D

Explanation:

This is what will happen if you run terraform apply in the working directory again, after removing the resource definition from your Terraform configuration file. Terraform will detect that there is a resource in the state file that is not present in the configuration file, and will assume that you want to delete it.



You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.

  1. True
  2. False

Answer(s): B

Explanation:

The execution plan for terraform apply will not be the same as the one you ran locally with terraform plan, if your teammate manually modified the infrastructure component you are working on. This is because Terraform will refresh the state file before applying any changes, and will detect any differences between the state and the real resources.



Viewing page 14 of 53
Viewing questions 66 - 70 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!