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

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

A developer on your team is going lo leaf down an existing deployment managed by Terraform and deploy a new one. However, there is a server resource named aws instant.ubuntu[l] they would like to keep. What command should they use to tell Terraform to stop managing that specific resource?

Options:

A.

Terraform plan rm:aws_instance.ubuntu[1]


B.

Terraform state rm:aws_instance.ubuntu[1]


C.

Terraform apply rm:aws_instance.ubuntu[1]


D.

Terraform destory rm:aws_instance.ubuntu[1]


Expert Solution
Questions # 22:

What type of block is used to construct a collection of nested configuration blocks?

Options:

A.

Dynamic


B.

For_each


C.

Nesting


D.

repeated.


Expert Solution
Questions # 23:

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

Options:

A.

Terraform state show ‘ provider_type_name


B.

Terraform state list


C.

Terraform get provider_type_name


D.

Terraform state list provider_type_name


Expert Solution
Questions # 24:

You modified your Terraform configuration and run Terraform plan to review the changes. Simultaneously, your teammate manually modified the infrastructure component you are working on. Since you already ran terraform plan locally, the execution plan for terraform apply will be the same.

Options:

A.

True


B.

False


Expert Solution
Questions # 25:

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:

Question # 25

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

Question # 25

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

terraform validate confirms that your infrastructure matches the Terraform state file.

Options:

A.

True


B.

False


Expert Solution
Questions # 27:

Your root module contains a variable namednum_servers. Which is the correct way to pass its value to a child module with an input namedservers?

Options:

A.

servers = num_servers


B.

servers = var(num_servers)


C.

servers = var.num_servers


D.

servers = ${var.num_servers}


Expert Solution
Questions # 28:

When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.

Options:

A.

True


B.

False


Expert Solution
Questions # 29:

Which of the following is not a valid source path for specifying a module?

Options:

A.

source - "github.com/hashicorp/examplePref-ul.0.8M


B.

source = "./module?version=vl.6.0"


C.

source - "hashicorp/consul/aws"


D.

source - "./module"


Expert Solution
Questions # 30:

When do changes invoked by terraform apply take effect?

Options:

A.

After Terraform has updated the state file


B.

Once the resource provider has fulfilled the request


C.

Immediately


D.

None of the above are correct


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