Free Terraform Associate Exam Braindumps (page: 30)

Page 29 of 88

When you use a remote backend that needs authentication, HashiCorp recommends that you:

  1. Use partial configuration to load the authentication credentials outside of the Terraform code
  2. Push your Terraform configuration to an encrypted git repository
  3. Write the authentication credentials in the Terraform configuration files
  4. Keep the Terraform configuration files in a secret store

Answer(s): A



You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully.
What will happen if you terraform apply again immediately afterwards without changing any Terraform code?

  1. Terraform will terminate and recreate the VM
  2. Terraform will create another duplicate VM
  3. Terraform will apply the VM to the state file
  4. Nothing

Answer(s): D



A junior admin accidentally deleted some of your cloud instances. What does Terraform do when you run terraform apply?

  1. Build a completely brand new set of infrastructure
  2. Tear down the entire workspace infrastructure and rebuild it
  3. Rebuild only the instances that were deleted
  4. Stop and generate an error message about the missing instances

Answer(s): C



You have created a main.tr Terraform configuration consisting of an application server, a database, and a load balancer. You ran terraform apply and all resources were created 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 destroy the application server because it is listed first in the code
  2. Terraform will prompt you to confirm that you want to destroy all the infrastructure
  3. Terraform will destroy the main.tf file
  4. Terraform will prompt you to pick which resource you want to destroy
  5. Terraform will immediately destroy all the infrastructure

Answer(s): B






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

Exam Discussions & Posts