Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

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

Viewing page 2 out of 10 pages
Viewing questions 11-20 out of questions
Questions # 11:

Once you configure a new Terraform backend with a terraform code block, which command(s) should you use to migrate the state file?

Options:

A.

terraform destroy, then terraform apply


B.

terraform init


C.

terraform push


D.

terraform apply


Expert Solution
Questions # 12:

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

Infrastructure as Code (laC) can be stored in a version control system along with application code.

Options:

A.

True


B.

False


Expert Solution
Questions # 14:

Changing the Terraform backend from the default " local " backend to a different one after performing your first terrafom apply is:

Options:

A.

Optional


B.

Impossible


C.

Mandatory


D.

Discouraged


Expert Solution
Questions # 15:

Terraform installs its providers during which phase?

Options:

A.

Plan


B.

Init


C.

Refresh


D.

All of the above


Expert Solution
Questions # 16:

Which Terraform collection type should you use to store key/value pairs?

Options:

A.

Set


B.

Map


C.

Tuple


D.

list


Expert Solution
Questions # 17:

Which of the following does terraform apply change after you approve the execution plan? (Choose two.)

Options:

A.

Cloud infrastructure


B.

The .terraform directory


C.

The execution plan


D.

State file


E.

Terraform code


Expert Solution
Questions # 18:

When do changes invoked by terraform apply take effect?

Options:

A.

After Terraform has updated the state file


B.

Once the resource provider has fulfilled the request


C.

Immediately


D.

None of the above are correct


Expert Solution
Questions # 19:

When should you use the force-unlock command?

Options:

A.

You have a high priority change


B.

Automatic unlocking failed


C.

apply failed due to a state lock


D.

You see a status message that you cannot acquire the lock


Expert Solution
Questions # 20:

When you initialize Terraform, where does it cache modules from the public Terraform Registry?

Options:

A.

In the /tmp directory.


B.

In the .terraform sub-directory.


C.

In memory.


D.

They are not cached.


Expert Solution
Viewing page 2 out of 10 pages
Viewing questions 11-20 out of questions