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

Viewing page 6 out of 8 pages
Viewing questions 51-60 out of questions
Questions # 51:

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 # 51

B)

C)

D)

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 52:

What is a Terraform provider not responsible for?

Options:

A.

Provisioning infrastructure in multiple cloud providers.


B.

Managing actions to take based on resource differences.


C.

Managing resources and data sources based on an API.


D.

Understanding API interactions with a hosted service.


Expert Solution
Questions # 53:

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.

Options:

A.

True


B.

False


Expert Solution
Questions # 54:

What does terraform import do?

Options:

A.

Imports existing resources into the state file


B.

Imports all infrastructure from a given cloud provider


C.

Imports a new Terraform module


D.

Imports clean copies of tainted resources


E.

None of the above


Expert Solution
Questions # 55:

You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?

Options:

A.

The Terraform state file contains all 16 VMs in the team account. Execute terraform destroy and select the newly-created VM.


B.

Delete the Terraform state file and execute terraform apply.


C.

The Terraform state file only contains the one new VM. Execute terraform destroy.


D.

Delete the VM using the cloud provider console and terraform apply to apply the changes to the Terraform state file.


Expert Solution
Questions # 56:

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

Options:

A.

True


B.

False


Expert Solution
Questions # 57:

Which of the following is not a valid string function in Terraform?

Options:

A.

chomp


B.

join


C.

slice


D.

split


Expert Solution
Questions # 58:

Variables declared within a module are accessible outside of the module.

Options:

A.

True


B.

False


Expert Solution
Questions # 59:

A provider configuration block is required in every Terraform configuration.

Example:

Question # 59

Options:

A.

True


B.

False


Expert Solution
Questions # 60:

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 6 out of 8 pages
Viewing questions 51-60 out of questions