Free Terraform-Associate-003 Exam Braindumps (page: 4)

Page 4 of 45

What does the default "local" Terraform backend store?

  1. tfplan files
  2. State file
  3. Provider plugins
  4. Terraform binary

Answer(s): B

Explanation:

The default "local" Terraform backend stores the state file in a local file named terraform.tfstate, which can be used to track and manage the state of your infrastructure.



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 Terraform Cloud organization owners can approve plans in VCS connected workspaces
  4. Only members of a VCS organization can open a pull request against repositories that are connected to Terraform Cloud workspaces

Answer(s): B

Explanation:

This will trigger a run in the Terraform Cloud workspace, which will perform a plan and apply operation on the infrastructure defined by the Terraform configuration files in the VCS repository.



You're building a CI/CD (continuous integration/continuous delivery) pipeline and need to inject sensitive variables into your Terraform run. How can you do this safely?

  1. Copy the sensitive variables into your Terraform code
  2. Store the sensitive variables in a secure_varS.tf file
  3. Store the sensitive variables as plain text in a source code repository
  4. Pass variables to Terraform with a -var flag

Answer(s): D

Explanation:

This is a secure way to inject sensitive variables into your Terraform run, as they will not be stored in any file or source code repository. You can also use environment variables or variable files with encryption to pass sensitive variables to Terraform.



When should you write Terraform configuration files for existing infrastructure that you want to start managing with Terraform?

  1. You can import infrastructure without corresponding Terraform code
  2. Terraform will generate the corresponding configuration files for you
  3. Before you run terraform Import
  4. After you run terraform import

Answer(s): C

Explanation:

You need to write Terraform configuration files for the existing infrastructure that you want to import into Terraform, otherwise Terraform will not know how to manage it. The configuration files should match the type and name of the resources that you want to import.



Page 4 of 45



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

Marc commented on October 18, 2024
What the best way to learn terraform?
UNITED STATES
upvote

Chandra commented on October 09, 2024
This is the best and only way of passing this exam as it is extremely hard. Good questions and valid dump.
INDIA
upvote

Madhan commented on September 26, 2024
Useful questions
INDIA
upvote

Abu commented on September 22, 2024
I did not know these questions were available online. I did not believe and trust them and studied quite a lot and just used these questions for practice. But most of the questions turned out to be in the exam.
UNITED STATES
upvote

Sahin commented on July 04, 2024
Need que to learn new things
UNITED STATES
upvote