Pre-Summer 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: 9

Questions 81

terraform init creates an example main.tf file in the current directory.

Options:
A.

True

B.

False

HashiCorp Terraform-Associate-004 Premium Access
Questions 82

Which of the following should you add in the required_providers block to define a provider version constraint?

Options:
A.

version ~ > 3.1

B.

version > = 3.1

C.

version = " > = 3.1 "

Questions 83

Why is it considered important to treat your Terraform state file as sensitive?

Options:
A.

It can contain information such as resource passwords and keys.

B.

It stores all environment variables from the machine that created it.

C.

It can be manually edited to change the deployed resources.

D.

It contains personal information about the last user to update it.

Questions 84

Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.

Options:
A.

True

B.

False

Questions 85

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 86

In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.

Options:
A.

True

B.

False

Questions 87

What command can you run to generateDOT (Graphviz)formatted data to visualize Terraform dependencies?

Options:
A.

terraform refresh

B.

terraform graph

C.

terraform output

D.

terraform show

Questions 88

You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?

Options:
A.

Run terraform refresh.

B.

Run terraform init -upgrade.

C.

Run terraform apply -upgrade.

D.

Upgrade your version of Terraform.

Questions 89

Which is not a benefit of adopting IaC (Infrastructure as Code)?

Options:
A.

Reusability of code

B.

Automation

C.

A GUI (Graphical User Interface)

D.

Versioning

Questions 90

What does Terraform use the .terraform.lock.hc1 file for?

Options:
A.

There is no such file

B.

Tracking specific provider dependencies

C.

Preventing Terraform runs from occurring

D.

Storing references to workspaces which are locked