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: 8

Questions 71

You ' re writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file ' s contents as a string?

Options:
A.

file( " id_rsa.pub " )

B.

templaTefil( " id_rsa.pub " )

C.

filebase64( " id_rsa.pub " )

D.

fileset < " id_rsa.pub " )

HashiCorp Terraform-Associate-004 Premium Access
Questions 72

You are responsible for a set of infrastructure that is managed by two workspaces: example-network and example-compute . The example-compute workspace uses data from output values configured in the example-network workspace and must be deployed afterward. Currently, this is a manual process:

    An operator deploys changes to the example-network workspace.

    They manually copy the output values from the example-network workspace to input variables configured for the example-compute workspace.

    They deploy the example-compute workspace.

Which HCP Terraform features can you use to automate this process?

Pick the two correct responses below.

Options:
A.

A health check configured on the example-network workspace to create a plan on the example-compute workspace when HCP Terraform applies changes to it.

B.

A health check configured on the example-compute workspace to create a plan when HCP Terraform applies changes to the example-network workspace.

C.

A tfe_outputs data source configured in the example-compute workspace to automatically load output values from the example-network workspace.

D.

A run trigger configured on the example-network workspace to automatically plan changes to the example-compute workspace after every apply.

E.

A run trigger configured on the example-compute workspace to automatically plan changes after HCP Terraform applies changes to the example-network workspace.

Questions 73

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 74

You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?

Options:
A.

Local values

B.

Count arguments

C.

Collection functions

D.

Dynamic blocks

Questions 75

You can reference a resource created with for_each using a Splat ( *) expression.

Options:
A.

True

B.

False

Questions 76

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 77

Which of the following is not a way to trigger terraform destroy?

Options:
A.

Using the destroy command with auto-approve.

B.

Passing --destroy at the end of a plan request.

C.

Running terraform destroy from the correct directory and then typing yes when prompted in the CLI.

Questions 78

All standard backend types support state locking, and remote operations like plan, apply, and destroy.

Options:
A.

True

B.

False

Questions 79

When declaring a variable, setting the sensitive argument to true will prevent the value from being stored in the state file.

Options:
A.

True

B.

False

Questions 80

Which of the following should you put into the required_providers block?

Options:
A.

version > = 3.1

B.

version = “ > = 3.1”

C.

version ~ > 3.1