Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

Free HashiCorp Terraform-Associate-003 Practice Exam with Questions & Answers | Set: 6

Questions 51

Outside of the required_providers block, Terraform configurations always refer to providers by their local names.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-003 Premium Access
Questions 52

Which type of block fetches or computes information for use elsewhere in a Terraform configuration?

Options:
A.

data

B.

local

C.

resource

D.

provider

Questions 53

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?

Options:
A.

Artifactory

B.

Amazon S3

C.

Terraform Cloud

D.

Git

Questions 54

The public Terraform Module Registry is free to use.

Options:
A.

True

B.

False

Questions 55

A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?

Options:
A.

test

B.

google

C.

compute_instance

D.

main

Questions 56

Which of these actions will prevent two Terraform runs from changing the same state file at the same time?

Options:
A.

Refresh the state after running Terraform

B.

Delete the state before running Terraform

C.

Configure state locking for your state backend

D.

Run Terraform with parallelism set to 1

Questions 57

Which option cannot be used to keep secrets out of Terraform configuration files?

Options:
A.

A Terraform provider

B.

Environment variables

C.

A -var flag

D.

secure string

Questions 58

Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?

Options:
A.

Dry runs with terraform plan.

B.

Secure variable storage.

C.

Using one workspace's state as a data source for another.

D.

Support for multiple cloud providers.

Questions 59

Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?

Options:
A.

Edit your state file to scrub out the sensitive data

B.

Always store your secrets in a secrets.tfvars file

C.

Delete the state file every time you run Terraform

D.

Store the state in an encrypted backend

Questions 60

Which command(s) adds existing resources in a public cloud into Terraform state?

Options:
A.

terraform init

B.

terraform plan

C.

terraform refresh

D.

terraform import

E.

All of these