Halloween Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: big75certs

Terraform-Associate-004 VCE Exam Download

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Questions and Answers

Question 89

You have a list of numbers representing the number of free CPU cores on each virtual cluster:

numcpus = [18, 3, 7, 11, 2]

Which Terraform built-in function would you use to select the largest number from the list?

Options:

A.

top(numcpus)

B.

max(numcpus)

C.

high[numcpus]

D.

ceil(numcpus)

Question 90

Which situation will return an error when you run terraform validate?

Options:

A.

The state file does not match the current infrastructure.

B.

The code contains tabs for indentation instead of spaces.

C.

There is a missing variable block.

D.

None of these will return an error.

Question 91

Exhibit:

data " vsphere_datacenter " " dc " {}

resource " vsphere_folder " " parent " {

path = " Production "

type = " vm "

datacenter_id = _________

}

You want to pass the id of the vsphere_datacenter data source to the datacenter_id argument of the vsphere_folder resource. Which reference would you use?

Options:

A.

data.vsphere_datacenter.de.id

B.

vsphere_datacenter.dc.id

C.

data.vsphere_datacenter.dc

D.

data.de.id

Question 92

Which backend does the Terraform CLI use by default?

Options:

A.

Depends on the cloud provider configured

B.

HTTP

C.

Remote

D.

Terraform Cloud

E.

Local