Free Terraform Associate Exam Braindumps (page: 3)

Page 2 of 88

A provider configuration block is required in every Terraform configuration.
Example:

  1. True
  2. False

Answer(s): B

Explanation:


Reference:

https://github.com/hashicorp/terraform/issues/17928



You run a local-exec provisioner in a null resource called null_resource.run_script and realize that you need to rerun the script.
Which of the following commands would you use first?

  1. terraform taint null_resource.run_script
  2. terraform apply -target=null_resource.run_script
  3. terraform validate null_resource.run_script
  4. terraform plan -target=null_resource.run_script

Answer(s): A



Which provisioner invokes a process on the resource created by Terraform?

  1. remote-exec
  2. null-exec
  3. local-exec
  4. file

Answer(s): A

Explanation:

The remote-exec provisioner invokes a script on a remote resource after it is created.


Reference:

https://www.terraform.io/docs/language/resources/provisioners/remote-exec.html



Which of the following is not true of Terraform providers?

  1. Providers can be written by individuals
  2. Providers can be maintained by a community of users
  3. Some providers are maintained by HashiCorp
  4. Major cloud vendors and non-cloud vendors can write, maintain, or collaborate on Terraform providers
  5. None of the above

Answer(s): E

Explanation:


Reference:

https://jayendrapatil.com/terraform-cheat-sheet/#Terraform_Read_and_write_configuration






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

Terraform Associate Exam Discussions & Posts