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

Viewing page 2 out of 8 pages
Viewing questions 11-20 out of questions
Questions # 11:

You have developed a new cloud-based service that uses proprietary APIs and want to use Terraform to create, manage, and delete users from the service. How can Terraform interact with the service?

Options:

A.

Terraform can manage users for any service that is hosted on a public cloud provider.


B.

Develop and publish a custom provider to interact with the service using its proprietary APIs.


Expert Solution
Questions # 12:

When you initialize Terraform, where does it cache modules from the public Terraform Registry?

Options:

A.

In the /tmp directory.


B.

In the .terraform sub-directory.


C.

In memory.


D.

They are not cached.


Expert Solution
Questions # 13:

Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.

Options:

A.

Plan


B.

Import


C.

Alidate


D.

Init


E.

apply


Expert Solution
Questions # 14:

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

Options:

A.

With a tab


B.

With two spaces


C.

With four spaces


D.

With three spaces


Expert Solution
Questions # 15:

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

terraform apply will fail if you have not run terraform plan first to update the plan output.

Options:

A.

True


B.

False


Expert Solution
Questions # 17:

How does Terraform manage most dependencies between resources?

Options:

A.

Terraform will automatically manage most resource dependencies


B.

Using the depends_on parameter


C.

By defining dependencies as modules and including them in a particular order


D.

The order that resources appear in Terraform configuration indicates dependencies


Expert Solution
Questions # 18:

Which of these actions are forbidden when the Terraform state file is locked? (Pick the 3 correct responses)

Options:

A.

terraform apply


B.

terraform state list


C.

terraform destroy


D.

terraform fmt


Expert Solution
Questions # 19:

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.

Options:

A.

True


B.

False


Expert Solution
Questions # 20:

Which command should you run to check if all code in a Terraform configuration that references multiple modules is properly formatted without making changes?

Options:

A.

terraform fmt -write-false


B.

terraform fmt -list -recursive


C.

terraform fmt -check -recursive


D.

terraform fmt -check


Expert Solution
Viewing page 2 out of 8 pages
Viewing questions 11-20 out of questions