Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

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

Questions 41

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

HashiCorp Terraform-Associate-003 Premium Access
Questions 42

What does the default "local" Terraform backend store?

Options:
A.

tfplan files

B.

State file

C.

Provider plugins

D.

Terraform binary

Questions 43

What is the name of the default file where Terraform stores the state?

Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.

Options:
Questions 44

You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code. What is the best method to quickly find the IP address of the resource you deployed?

Options:
A.

In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file

B.

Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address

C.

Run terraform output ip_address to view the result

D.

Run terraform destroy then terraform apply and look for the IP address in stdout

Questions 45

How does Terraform determine dependencies between resources?

Options:
A.

Terraform requires resource dependencies to be defined as modules and sourced in order

B.

Terraform automatically builds a resource graph based on resources provisioners, special meta-parameters, and the stale file (if present}

C.

Terraform requires resources in a configuration to be listed m the order they will be created to determine dependencies

D.

Terraform requires all dependencies between resources to be specified using the depends_on parameter

Questions 46

You created infrastructure outside the Terraform workflow that you now want to manage using Terraform. Which command brings the infrastructure into Terraform state?

Options:
A.

terraform get

B.

terraform refresh

C.

terraform import

D.

terraform init

Questions 47

Which are forbidden actions when the terraform state file is locked? Choose three correct answers.

Options:
A.

Terraform state list

B.

Terraform destroy

C.

Terraform validate

D.

Terraform validate

E.

Terraform for

F.

Terraform apply

Questions 48

Where can Terraform not load a provider from?

Options:
A.

Plugins directory

B.

Provider plugin chance

C.

Official HashCrop Distribution on releases.hashcrop.com

D.

Source code

Questions 49

You have to initialize a Terraform backend before it can be configured.

Options:
A.

True

B.

False

Questions 50

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