Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Pass the HashiCorp Terraform Associate Terraform-Associate-004 Questions and answers with CertsForce

Viewing page 8 out of 12 pages
Viewing questions 71-80 out of questions
Questions # 71:

You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud command line tool. However, you are standardizing with Terraform and want to manage these VMs using Terraform instead. What are the two things you must do to achieve this? Choose two correct answers.

Options:

A.

Run the terraform Import-gcp command


B.

Write Terraform configuration for the existing VMs


C.

Use the terraform import command for the existing VMs


D.

Provision new VMs using Terraform with the same VM names


Expert Solution
Questions # 72:

You’ve enabled DEBUG-level logging for Terraform, and you’d like to send the log data to a file. Which action should you take?

Options:

A.

Set the TF_LOG_PATH environment variable.


B.

Update the Terraform CLI configuration file.


C.

Add a path argument to the terraform block.


D.

Run the terraform output command.


Expert Solution
Questions # 73:

You have declared a variable called var.list which is a list of objects that all have an attribute id . Which options will produce a list of the IDs? Choose two correct answers.

Options:

A.

[ var.list [ * ] , id ]


B.

[ for o in var.list : o.Id ]


C.

var.list[*].id


D.

{ for o in var.llst : o = > o.id }


Expert Solution
Questions # 74:

terraform validate reports syntax check errors for which of the following?

Options:

A.

Code contains tabs for indentation instead of spaces


B.

There is a missing value for a variable


C.

The state file does not match the current infrastructure


D.

None of the above


Expert Solution
Questions # 75:

Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?

Options:

A.

Dry runs with terraform plan.


B.

Secure variable storage.


C.

Using one workspace ' s state as a data source for another.


D.

Support for multiple cloud providers.


Expert Solution
Questions # 76:

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


Expert Solution
Questions # 77:

Which method for sharing Terraform modules fulfills the following criteria:

Keeps the module configurations confidential within your organization.

Supports Terraform ' s semantic version constraints.

Provides a browsable directory of your modules.

Options:

A.

A Git repository containing your modules.


B.

Public Terraform module registry.


C.

A subfolder within your workspace.


D.

HCP Terraform/Terraform Cloud private registry.


Expert Solution
Questions # 78:

Terraform providers are always installed from the Internet.

Options:

A.

True


B.

False


Expert Solution
Questions # 79:

When a check block’s assertion fails, Terraform blocks the current operation from executing.

Options:

A.

True


B.

False


Expert Solution
Questions # 80:

What information does the public Terraform Module Registry automatically expose about published modules?

Options:

A.

Required input variables


B.

Optional inputs variables and default values


C.

Outputs


D.

All of the above


E.

None of the above


Expert Solution
Viewing page 8 out of 12 pages
Viewing questions 71-80 out of questions