Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

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 a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterward without changing any Terraform code?

Options:

A.

Terraform will terminate and recreate the VM.


B.

Terraform will create another duplicate VM.


C.

Terraform will apply the VM to the state file.


D.

Nothing


Expert Solution
Questions # 12:

Terraform configuration can only import modules from the public registry.

Options:

A.

True


B.

False


Expert Solution
Questions # 13:

Which of the following should you add in the required_providers block to define a provider version constraint?

Options:

A.

version


B.

version = "3.1"


C.

version: 3.1


D.

version - 3.1


Expert Solution
Questions # 14:

You can configure Terraform to log to a file using the TF_LOG environment variable.

Options:

A.

True


B.

False


Expert Solution
Questions # 15:

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

You are tasked with making a change to an infrastructure stack running in a public cloud using HCP Terraform/Terraform Cloud. Which pattern follows IaC best practices?

Options:

A.

Make the change via the public cloud API endpoint.


B.

Submit a pull request and wait for an approved merge of the proposed changes.


C.

Clone the repository containing your infrastructure code and then run the code.


D.

Use the public cloud console to make the change after approval.


E.

Make the change programmatically via the cloud CLI.


Expert Solution
Questions # 17:

Which of the following should you put into the required_providers block?

Options:

A.

version >= 3.1


B.

version = “>= 3.1”


C.

version ~> 3.1


Expert Solution
Questions # 18:

You can reference a resource created with for_each using a Splat ( *) expression.

Options:

A.

True


B.

False


Expert Solution
Questions # 19:

What is modified when executing Terraform inrefresh-only mode?

Options:

A.

Your Terraform configuration.


B.

Your Terraform plan.


C.

Your state file.


D.

Your cloud infrastructure.


Expert Solution
Questions # 20:

What is the provider for the resource shown in the Exhibit?

resource "aws_vpc" "main" {

name = "test"

}

Options:

A.

VPC


B.

test


C.

main


D.

aws


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