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

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

Questions 71

What does the default " local " Terraform backend store?

Options:
A.

tfplan files

B.

State file

C.

Provider plugins

D.

Terraform binary

HashiCorp Terraform-Associate-004 Premium Access
Questions 72

Which of the following statements about Terraform modules is not true?

Options:
A.

Modules can call other modules

B.

A module is a container for one or more resources

C.

Modules must be publicly accessible

D.

You can call the same module multiple times

Questions 73

You’ve just finished refactoring part of your Terraform workspace’s configuration to use a module to manage some of your resources. When you plan your changes, you notice that Terraform will destroy and recreate the affected resources. Doing so could cause unintended downtime in the application your workspace manages. What supported approach should you take to complete the refactor without destroying and recreating your resources?

Options:
A.

Add moved blocks to your configuration to let Terraform know the new resource addresses for the affected resources.

B.

Run the terraform console command to edit your workspace ' s state and update the resource names.

C.

Manually edit your terraform.tfstate file and update the resource names.

D.

Open your cloud provider ' s console and rename the affected resources.

Questions 74

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

Questions 75

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.

Questions 76

One cloud block always maps to a single HCP Terraform/Terraform Cloud workspace.

Options:
A.

True

B.

False

Questions 77

Which method for sharing Terraform configurations fulfills the following criteria:

1. Keeps the configurations confidential within your organization

2. Support Terraform’s semantic version constrains

3. Provides a browsable directory

Options:
A.

Subfolder within a workspace

B.

Generic git repository

C.

Terraform Cloud private registry

D.

Public Terraform module registry

Questions 78

After creating a new Terraform configuration, your configuration passes terraform validate but returns an “Access Denied” error from the cloud provider when running terraform plan.

Why did terraform validate not catch this issue?

Options:
A.

Variables are only applied and validated during terraform plan, so terraform validate assumed defaults and returned a success message.

B.

The working directory was not initialized, so the cloud provider plugin was unavailable when running the terraform validate command.

C.

terraform validate only checks whether a configuration is syntactically correct and internally consistent, and it does not communicate with providers.

D.

The remote backend was not configured, so terraform validate could not load the state and detect the missing credentials.

Questions 79

terraform validate confirms that your infrastructure matches the Terraform state file.

Options:
A.

True

B.

False

Questions 80

Where can Terraform not load a provider from?

Options:
A.

Plugins directory

B.

Provider plugin chance

C.

Official HashCrop Distribution on releases.hashcrop.com

D.

Source code