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

Viewing page 5 out of 8 pages
Viewing questions 41-50 out of questions
Questions # 41:

terraform init creates an example main.tf file in the current directory.

Options:

A.

True


B.

False


Expert Solution
Questions # 42:

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

You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.

Which variable type could you use for this input?

Options:

A.

List


B.

Object


C.

Map


D.

Terraform does not support complex input variables of different types


Expert Solution
Questions # 44:

_______backends support state locking.

Options:

A.

All


B.

No


C.

Some


D.

Only local


Expert Solution
Questions # 45:

If a module declares a variable without a default value, you must pass the value of the variable within the module block when you call the module in your configuration.

Options:

A.

True


B.

False


Expert Solution
Questions # 46:

Which of the following is not a way to trigger terraform destroy?

Options:

A.

Using the destroy command with auto-approve.


B.

Passing --destroy at the end of a plan request.


C.

Running terraform destroy from the correct directory and then typing yes when prompted in the CLI.


Expert Solution
Questions # 47:

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

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

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

How can you trigger a run in a Terraform Cloud workspace that is connected to a Version Control System (VCS) repository?

Options:

A.

Only Terraform Cloud organization owners can set workspace variables on VCS connected workspaces


B.

Commit a change to the VCS working directory and branch that the Terraform Cloud workspace is connected to


C.

Only Terraform Cloud organization owners can approve plans in VCS connected workspaces


D.

Only members of a VCS organization can open a pull request against repositories that are connected to Terraform Cloud workspaces


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