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

Questions 71

Which parameters does the import block require? (Pick the 2 correct responses below.)

Options:
A.

The resource ID

B.

Provider

C.

The target resource address

D.

Backend

HashiCorp Terraform-Associate-004 Premium Access
Questions 72

Terraform installs its providers during which phase?

Options:
A.

Plan

B.

Init

C.

Refresh

D.

All of the above

Questions 73

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.

Questions 74

What does state looking accomplish?

Options:
A.

Prevent accidental Prevent accident deletion of the state file

B.

Blocks Terraform commands from modifying, the state file

C.

Copies the state file from memory to disk

D.

Encrypts any credentials stored within the state file

Questions 75

A module block is shown in the Exhibit space of this page. When you use a module block to reference a module from the Terraform Registry such as the one in the example, how do you specify version 1.0.0 of the module?

Options:
A.

Append ?ref=v1.0.0 argument to the source path.

B.

You cannot. Modules stored on the public Terraform Registry do not support versioning.

C.

Add a version = " 1.0.0 " attribute to the module block.

D.

Nothing. Modules stored on the public Terraform module Registry always default to version 1.0.0.

Questions 76

Which of the following is not a valid string function in Terraform?

Options:
A.

chomp

B.

join

C.

slice

D.

split

Questions 77

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 78

Your DevOps team is currently using the local backend for your Terraform configuration. You would like to move to a remote backend to store the state file in a central location. Which of the following backends would not work?

Options:
A.

Artifactory

B.

Amazon S3

C.

Terraform Cloud

D.

Git

Questions 79

Which statements are true about terraform apply? (Choose TWO correct answers)

Options:
A.

Depending on the provider specification, Terraform may need to destroy and recreate your infrastructure resources.

B.

It only operates on infrastructure defined in the current working directory or workspace.

C.

You must pass the output of a terraform plan command to it.

D.

By default, it does not refresh your state file to reflect the current infrastructure configuration.

E.

You cannot target specific resources for the operation.

Questions 80

You can access state stored with the local backend by using terraform_remote_state data source.

Options:
A.

True

B.

False