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 1 out of 12 pages
Viewing questions 1-10 out of questions
Questions # 1:

terraform destroy is the only way to remove infrastructure.

Options:

A.

True


B.

False


Expert Solution
Questions # 2:

Your configuration contains a module block that references a module from the Terraform Registry and sets the version argument to 1.0. You just published a new version of the module and updated your configuration to point to version 1.1.

Which command must be run to install the new version?

Options:

A.

terraform init


B.

terraform modules


C.

terraform plan


D.

terraform apply


Expert Solution
Questions # 3:

Module version is required to reference a module on the Terraform Module Registry.

Options:

A.

True


B.

False


Expert Solution
Questions # 4:

Which are forbidden actions when the terraform state file is locked? Choose three correct answers.

Options:

A.

Terraform state list


B.

Terraform destroy


C.

Terraform validate


D.

Terraform validate


E.

Terraform for


F.

Terraform apply


Expert Solution
Questions # 5:

A module block used in your configuration is shown in the exhibit. You have been asked to update the version of this module from 4.2.1 to 5.0.0.

Exhibit:

module " compute " {

source = " Azure/compute/azurerm "

version = " 4.2.1 "

}

Which two steps must you take to accomplish this?

Options:

A.

Run the terraform init command.


B.

Run the terraform pull command.


C.

Update the version argument in the module block.


D.

Remove the version argument from the module block.


Expert Solution
Questions # 6:

You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this?

Question # 6

Options:

A.

Option A


B.

Option B


C.

Option C


Expert Solution
Questions # 7:

Only the user that generated a plan may apply it.

Options:

A.

True


B.

False


Expert Solution
Questions # 8:

How does an HCP Terraform integration using the cloud block differ from remote backends such as S3?

Options:

A.

The cloud block supports multiple backends simultaneously.


B.

Using the cloud block automatically encrypts state files at rest and in transit.


C.

Using the cloud block enables remote operations on infrastructure managed by HCP Terraform or Terraform Enterprise.


D.

Using the cloud block requires Terraform Enterprise.


Expert Solution
Questions # 9:

Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?

Options:

A.

curl commands manually run from a terminal


B.

A sequence of REST requests you pass to a public cloud API endpoint Most Voted


C.

A script that contains a series of public cloud CLI commands


D.

A series of commands you enter into a public cloud console


Expert Solution
Questions # 10:

You have used Terraform lo create an ephemeral development environment in the (loud and are now ready to destroy all the Infrastructure described by your Terraform configuration To be safe, you would like to first see all the infrastructure that Terraform will delete.

Which command should you use to show all of the resources that mil be deleted? Choose two correct answers.

Options:

A.

Run terraform state rm ‘


B.

Run terraform show :destroy


C.

Run terraform destroy and it will first output all the resource that will be deleted before prompting for approval


D.

Run terraform plan .destory


Expert Solution
Viewing page 1 out of 12 pages
Viewing questions 1-10 out of questions