Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free HashiCorp Terraform-Associate-004 Practice Exam with Questions & Answers | Set: 4

Questions 31

Only the user that generated a plan may apply it.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-004 Premium Access
Questions 32

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 33

What does Terraform not reference when running a terraform apply -refresh-only ?

Options:
A.

State file

B.

Credentials

C.

Cloud provider

D.

Terraform resource definitions in configuration files

Questions 34

What does terraform import do?

Options:
A.

Imports existing resources into the state file

B.

Imports all infrastructure from a given cloud provider

C.

Imports a new Terraform module

D.

Imports clean copies of tainted resources

E.

None of the above

Questions 35

A provider configuration block is required in every Terraform configuration.

Example:

Terraform-Associate-004 Question 35

Options:
A.

True

B.

False

Questions 36

You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.

Options:
A.

[ var.list [ * ] , id ]

B.

[ for o in var.list : o.Id ]

C.

var.list[*].id

D.

{ for o in var.llst : o => o.id }

Questions 37

Which backend does the Terraform CLI use by default?

Options:
A.

Depends on the cloud provider configured

B.

HTTP

C.

Remote

D.

Terraform Cloud

E.

Local

Questions 38

Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.

Options:
A.

True

B.

False

Questions 39

Terraform providers are part of the Terraform core binary.

Options:
A.

True

B.

False

Questions 40

What is the purpose of the terraform.lock.hcl file in Terraform?

Options:
A.

There is no such file.

B.

Storing references to workspaces, which are locked.

C.

Preventing Terraform runs from occurring.

D.

Tracking specific provider dependencies.