Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

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

Viewing page 4 out of 10 pages
Viewing questions 31-40 out of questions
Questions # 31:

Which of the following is not true of Terraform providers?

Options:

A.

An individual person can write a Terraform Provider


B.

A community of users can maintain a provider


C.

HashiCorp maintains some providers


D.

Cloud providers and infrastructure vendors can write, maintain, or collaborate on Terraform


E.

providers


F.

None of the above


Expert Solution
Questions # 32:

How do you specify a module’s version when publishing it to the public terraform Module Registry?

Options:

A.

Configuration it in the module ' s Terraform code


B.

Mention it on the module ' s configuration page on the Terraform Module Registry


C.

The Terraform Module Registry does not support versioning modules


D.

Tag a release in the associated repo


Expert Solution
Questions # 33:

Which of these is true about Terraform ' s plugin-based architecture?

Options:

A.

Terraform can only source providers from the internet


B.

Every provider in a configuration has its own state file for its resources


C.

You can create a provider for your API if none exists


D.

All providers are part of the Terraform core binary


Expert Solution
Questions # 34:

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

Options:

A.

True


B.

False


Expert Solution
Questions # 35:

In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.

Options:

A.

True


B.

False


Expert Solution
Questions # 36:

A developer on your team is going to 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 # 37:

Your team often uses API calls to create and manage cloud infrastructure. In what ways does Terraform differ from conventional infrastructure management approaches?

Options:

A.

Terraform describes infrastructure with version-controlled, repeatable configurations that specify the desired state.


B.

Terraform is merely a wrapper for cloud provider APIs, so there is little to no difference in calling the API directly.


C.

Terraform replaces cloud provider APIs with its own protocols, enabling automated deployments.


D.

Terraform enforces infrastructure through imperative scripts to ensure tasks are completed in the proper order.


Expert Solution
Questions # 38:

Your team is collaborating on infrastructure using Terraform and wants to format code to follow Terraform language style conventions. How can you update your code to meet these requirements?

Options:

A.

Run terraform fmt to update your Terraform configurations.


B.

Replace all tabs with spaces within your Terraform configuration files.


C.

Run terraform validate prior to executing terraform plan or terraform apply.


D.

Terraform automatically formats configuration on terraform apply.


Expert Solution
Questions # 39:

Running terraform fmt without any flags in a directory with Terraform configuration files check the formatting of those files without changing their contents.

Options:

A.

True


B.

False


Expert Solution
Questions # 40:

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
Viewing page 4 out of 10 pages
Viewing questions 31-40 out of questions