Month End Special Sale 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale75best

Free HashiCorp Terraform-Associate-004 Practice Exam with Questions & Answers | Set: 3

Questions 21

You need to determine from which paths Terraform is loading the providers referenced in your *.tf files.

How can you enable additional logging to see this information?

Options:
A.

Set the environment variable TF_VAR_log=TRACE.

B.

Set the environment variable TF_LOG_PATH.

C.

Set the environment variable TF_LOG=TRACE.

D.

Set verbose logging for each provider in your Terraform configuration.

HashiCorp Terraform-Associate-004 Premium Access
Questions 22

You previously applied your Terraform configuration to create infrastructure in your cloud provider. Your configuration uses the local backend, and you accidentally deleted your terraform.tfstate file.

What does Terraform do the next time you run terraform apply?

Options:
A.

Delete the old resources and create them again.

B.

Return an error that it cannot find your state file.

C.

Find the resources it previously created and recreate the state file.

D.

Create all the resources again without deleting the old resources.

Questions 23

You are responsible for a set of infrastructure that is managed by two workspaces: example-network and example-compute. The example-compute workspace uses data from output values configured in the example-network workspace and must be deployed afterward. Currently, this is a manual process:

An operator deploys changes to the example-network workspace.

They manually copy the output values from the example-network workspace to input variables configured for the example-compute workspace.

They deploy the example-compute workspace.

Which HCP Terraform features can you use to automate this process?

Pick the two correct responses below.

Options:
A.

A health check configured on the example-network workspace to create a plan on the example-compute workspace when HCP Terraform applies changes to it.

B.

A health check configured on the example-compute workspace to create a plan when HCP Terraform applies changes to the example-network workspace.

C.

A tfe_outputs data source configured in the example-compute workspace to automatically load output values from the example-network workspace.

D.

A run trigger configured on the example-network workspace to automatically plan changes to the example-compute workspace after every apply.

E.

A run trigger configured on the example-compute workspace to automatically plan changes after HCP Terraform applies changes to the example-network workspace.

Questions 24

Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)

Options:
A.

Automatic backups of configuration and state.

B.

Remote state storage.

C.

Automated infrastructure deployment visualization.

D.

A web-based user interface (UI).

Questions 25

Exhibit.

You need to deploy resources into two different regions in the same Terraform configuration. To do this, you declare multiple provider configurations as shown in the Exhibit space on this page.

What meta-argument do you need to configure in a resource block to deploy the resource to the us-west-2 AWS region?

Options:
A.

provider = aws.west

B.

alias = aws.west

C.

provider = west

D.

alias = west

Questions 26

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

Questions 27

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

Questions 28

Which argument can you use toprevent unexpected updatesto a module ' s configuration when calling Terraform Registry modules?

Options:
A.

source

B.

count

C.

version

D.

lifecycle

Questions 29

Why does this backend configuration not follow best practices?

Terraform-Associate-004 Question 29

Options:
A.

An alias meta-argument should be included in backend blocks whenever possible

B.

You should use the local enhanced storage backend whenever possible

C.

You should not store credentials in Terraform configuration

D.

The backend configuration should contain multiple credentials so that more than one user can execute terraform plan and terraform apply

Questions 30

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.