Free Terraform Associate Exam Braindumps (page: 25)

Page 24 of 113

Which of the following is not an action performed by terraform init?

  1. Create a sample main.tf file
  2. Initialize a configured backend
  3. Retrieve the source code for all referenced modules
  4. Load required provider plugins

Answer(s): A



HashiCorp Configuration Language (HCL) supports user-defined functions.

  1. True
  2. False

Answer(s): B

Explanation:

The Terraform language does not support user-defined functions, and so only the functions built into the language are available for use


Reference:

https://www.terraform.io/language/functions



How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?

  1. Only Terraform Cloud organization owners can set workspace variables on VCS connected workspaces
  2. Commit a change to the VCS working directory and branch that the Terraform Cloud workspace is connected to
  3. Only members of a VCS organization can open a pull request against repositories that are connected to Terraform Cloud workspaces
  4. Only Terraform Cloud organization owners can approve plans in VCS connected workspaces

Answer(s): B

Explanation:

"In a workspace linked to a VCS repository, runs start automatically when you merge or commit changes to version control.
A workspace is linked to one branch of a VCS repository and ignores changes to other branches. You can specify which files and directories within your repository trigger runs. "


Reference:

https://www.terraform.io/cloud-docs/run/ui#automatically-starting-runs



Terraform and Terraform providers must use the same major version number in a single configuration.

  1. True
  2. False

Answer(s): B


Reference:

https://www.terraform.io/language/expressions/version-constraints#terraform-core-and-provider-versions






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

Terraform Associate Discussions & Posts