Free Terraform Associate Exam Braindumps (page: 3)

Page 2 of 113

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

  1. True
  2. False

Answer(s): B

Explanation:

Unlike many other objects in the Terraform language, a provider block may be omitted if its contents would otherwise be empty. Terraform assumes an empty default configuration for any provider that is not explicitly configured.


Reference:

https://www.terraform.io/language/providers/configuration



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


Reference:

https://www.terraform.io/cli/commands/taint



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 local-exec provisioner invokes a local executable after a resource is created. This invokes a process on the machine running Terraform, not on the resource."


Reference:

https://www.terraform.io/language/resources/provisioners/local-exec
"The remote-exec provisioner invokes a script on a remote resource after it is created." https://www.terraform.io/language/resources/provisioners/remote-exec



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:

This provider is collaboratively maintained by the Google Terraform Team at Google and the Terraform team at HashiCorp https://www.terraform.io/language/providers


Reference:

https://registry.terraform.io/providers/hashicorp/google/latest






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

Terraform Associate Discussions & Posts