Free Terraform Associate Exam Braindumps (page: 32)

Page 31 of 88

Which of the following does terraform apply change after you approve the execution plan? (Choose two.)

  1. Cloud infrastructure
  2. The .terraform directory
  3. The execution plan
  4. State file
  5. Terraform code

Answer(s): A



A Terraform backend determines how Terraform loads state and stores updates when you execute ___________.

  1. apply
  2. taint
  3. destroy
  4. All of the above
  5. None of the above

Answer(s): D



What does Terraform use .terraform.lock.hcl file for?

  1. Tracking provider dependencies
  2. There is no such file
  3. Preventing Terraform runs from occurring
  4. Storing references to workspaces which are locked

Answer(s): A



You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?

  1. Use the terraform state rm command to remove the VM from state file
  2. Use the terraform taint command targeting the VMs then run terraform plan and terraform apply
  3. Use the terraform apply command targeting the VM resources only
  4. Delete the Terraform VM resources from your Terraform code then run terraform plan and terraform apply

Answer(s): B






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

Exam Discussions & Posts