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

Viewing page 7 out of 7 pages
Viewing questions 61-70 out of questions
Questions # 61:

You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?

Options:

A.

Local values


B.

Count arguments


C.

Collection functions


D.

Dynamic blocks


Expert Solution
Questions # 62:

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

Where can Terraform not load a provider from?

Options:

A.

Plugins directory


B.

Provider plugin chance


C.

Official HashCrop Distribution on releases.hashcrop.com


D.

Source code


Expert Solution
Questions # 64:

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

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

What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

Options:

A.

Terraform plan –refresh-only


B.

Terraform show –json


C.

Terraform apply –lock-false


D.

Terraform plan target-state


Expert Solution
Questions # 67:

Which of the following should you put into the required_providers block?

Options:

A.

version >= 3.1


B.

version = “>= 3.1”


C.

version ~> 3.1


Expert Solution
Viewing page 7 out of 7 pages
Viewing questions 61-70 out of questions