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

Questions 61

What functionality do providers offer in Terraform?(Pick 3 correct responses)

Options:
A.

Interact with cloud provider APIs.

B.

Provision resources for on-premises infrastructure services.

C.

Group a collection of Terraform configuration files that map to a single state file.

D.

Provision resources for public cloud infrastructure services.

E.

Enforce security and compliance policies.

HashiCorp Terraform-Associate-004 Premium Access
Questions 62

A data source is shown in the exhibit below.

How do you reference the id attribute of this data source?

Terraform-Associate-004 Question 62

}

}

Options:
A.

data.aws_ami.web.id

B.

aws_ami.web.id

C.

web.id

D.

data.web.id

Questions 63

You want to bring an existing database under Terraform management. What information is required to create a new import block for the database?

Pick the 2 correct responses below:

Options:
A.

The destination resource address of the block that will manage the database.

B.

The path to the .tf file that contains the database resource block.

C.

The ID associated with the current database on the cloud provider.

D.

The database platform and version that the existing resource is running.

E.

The connection string that Terraform will use to connect and manage the database.

Questions 64

Terraform variable names are saved in the state file.

Options:
A.

True

B.

False

Questions 65

What is an advantage of immutable infrastructure?

Options:
A.

In-place infrastructure upgrades

B.

Quicker infrastructure upgrades

C.

Automatic infrastructure upgrades

D.

Less complex infrastructure upgrades

Questions 66

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 67

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 68

HashiCorp Configuration Language (HCL) supports user-denned functions.

Options:
A.

True

B.

False

Questions 69

You can define multiple backend blocks in your Terraform configuration to store your state in multiple locations.

Options:
A.

True

B.

False

Questions 70

Which task does terraform init not perform?

Options:
A.

Validates all required variables are present

B.

Sources any modules and copies the configuration locally

C.

Connects to the backend

D.

Sources all providers used in the configuration and downloads them