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

Viewing page 3 out of 8 pages
Viewing questions 21-30 out of questions
Questions # 21:

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

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

If a DevOps team adopts AWS CloudFormation as their standardized method for provisioning public cloud resoruces, which of the following scenarios poses a challenge for this team?

Options:

A.

The team is asked to manage a new application stack built on AWS-native services


B.

The organization decides to expand into Azure wishes to deploy new infrastructure


C.

The team is asked to build a reusable code based that can deploy resources into any AWS region


D.

The DevOps team is tasked with automating a manual, web console-based provisioning.


Expert Solution
Questions # 24:

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
Questions # 25:

Which backend does the Terraform CU use by default?

Options:

A.

Depends on the cloud provider configured


B.

HTTP


C.

Remote


D.

Terraform Cloud


E.

Local


Expert Solution
Questions # 26:

Which argument can you use toprevent unexpected updatesto a module's configuration when calling Terraform Registry modules?

Options:

A.

source


B.

count


C.

version


D.

lifecycle


Expert Solution
Questions # 27:

A module can always refer to all variables declared in its parent module.

Options:

A.

True


B.

False


Expert Solution
Questions # 28:

What is the Terraform style convention for indenting a nesting level compared to the one above it?

Options:

A.

With two spaces.


B.

With four spaces.


C.

With three spaces.


D.

With a tab.


Expert Solution
Questions # 29:

In Terraform HCL, an object type of object({name=string, age-number}) would match this value.

Question # 29

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 30:

All modules published on the official Terraform Module Registry have been verified by HasihCorp.

Options:

A.

True


B.

False


Expert Solution
Viewing page 3 out of 8 pages
Viewing questions 21-30 out of questions