Month End Special Sale 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale75best

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

Questions 31

Which of these commands makes your code more human readable?

Options:
A.

Terraform validate

B.

Terraform output

C.

Terraform show

D.

Terraform file

HashiCorp Terraform-Associate-004 Premium Access
Questions 32

You want to use API tokens and other secrets within your team ' s Terraform workspaces. Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses)

Options:
A.

In an HCP Terraform/Terraform Cloud variable, with the sensitive option checked.

B.

In HashiCorp Vault.

C.

In a terraform.tfvars file, securely managed and shared with your team.

D.

In a terraform.tfvars file, checked into your version control system.

E.

In a plaintext document on a shared drive.

Questions 33

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

Options:
A.

True

B.

False

Questions 34

The_________determines how Terraform creates, updates, or delete resources.

Options:
A.

Terraform configuration

B.

Terraform provisioner

C.

Terraform provider

D.

Terraform core

Questions 35

What type of block is used to construct a collection of nested configuration blocks?

Options:
A.

Dynamic

B.

For_each

C.

Nesting

D.

repeated.

Questions 36

You cannot install third party plugins using terraform init.

Options:
A.

True

B.

False

Questions 37

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?

Options:
A.

terraform fmt -write-false

B.

terraform fmt -list -recursive

C.

terraform fmt -check -recursive

D.

terraform fmt -check

Questions 38

Select the command that doesn’t cause Terraform to refresh its state.

Options:
A.

Terraform destroy

B.

Terraform apply

C.

Terraform plan

D.

Terraform state list

Questions 39

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 40

You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working contains a .terraform.lock, hc1 file.

How will Terraform choose which version of the provider to use?

Options:
A.

Terraform will use the version recorded in your lock file

B.

Terraform will use the latest version of the provider for the new resource and the version recorded in the lock file to manage existing resources

C.

Terraform will check your state file to determine the provider version to use

D.

Terraform will use the latest version of the provider available at the time you provision your new resource