Summer Certification Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free Terraform-Associate-004 HashiCorp Updates

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

Question 17

Which of the following is not a benefit of adopting infrastructure as code?

Options:

A.

Versioning

B.

A Graphical User Interface

C.

Reusability of code

D.

Automation

Question 18

You much initialize your working directory before running terraform validate.

Options:

A.

True

B.

False

Question 19

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 20

After creating a new Terraform configuration, your configuration passes terraform validate but returns an “Access Denied” error from the cloud provider when running terraform plan.

Why did terraform validate not catch this issue?

Options:

A.

Variables are only applied and validated during terraform plan, so terraform validate assumed defaults and returned a success message.

B.

The working directory was not initialized, so the cloud provider plugin was unavailable when running the terraform validate command.

C.

terraform validate only checks whether a configuration is syntactically correct and internally consistent, and it does not communicate with providers.

D.

The remote backend was not configured, so terraform validate could not load the state and detect the missing credentials.