Month End 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 5 out of 8 pages
Viewing questions 41-50 out of questions
Questions # 41:

Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

Options:

A.

terraform state list ‘provider_type.name’


B.

terraform state show ‘provider_type.name’


C.

terraform get ‘provider_type.name’


D.

terraform state list


Expert Solution
Questions # 42:

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

You are using a networking module in your Terraform configuration with the name label my-network. In your main configuration you have the following code:

When you run terraform validate, you get the following error:

What must you do to successfully retrieve this value from your networking module?

Options:

A.

Change the reference value to my-network,outputs,vmet_id


B.

Define the attribute vmet_id as a variable in the networking modeule


C.

Define the attribute vnet_id as an output in the networking module


D.

Change the reference value module.my,network,outputs,vnet_id


Expert Solution
Questions # 44:

Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.

Options:

A.

Prevents manual modifications to your resources


B.

Lets you version, reuse, and share infrastructure configuration


C.

Secures your credentials


D.

Provisions the same resources at a lower cost


E.

Reduces risk of operator error


Expert Solution
Questions # 45:

You must use different Terraform commands depending on the cloud provider you use.

Options:

A.

True


B.

False


Expert Solution
Questions # 46:

Using the terraform state rm command against a resource will destroy it.

Options:

A.

True


B.

False


Expert Solution
Questions # 47:

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?

A)

Question # 47

B)

C)

D)

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 48:

Which type of block fetches or computes information for use elsewhere in a Terraform configuration?

Options:

A.

data


B.

local


C.

resource


D.

provider


Expert Solution
Questions # 49:

How could you reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?

Options:

A.

Data.vsphere_datacenter.DC.id


B.

Vsphere_datacenter.dc.id


C.

Data,dc,id


D.

Data.vsphere_datacenter,dc


Expert Solution
Questions # 50:

You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?

Options:

A.

Run terraform refresh.


B.

Run terraform init -upgrade.


C.

Run terraform apply -upgrade.


D.

Upgrade your version of Terraform.


Expert Solution
Viewing page 5 out of 8 pages
Viewing questions 41-50 out of questions