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

HashiCorp Terraform-Associate-004 - HashiCorp Certified: Terraform Associate (004) (HCTA0-004)

Page: 4 / 10
Total 318 questions

What is the purpose of the .terraform directory in a Terraform workspace?

A.

The directory is where Terraform creates and maintains the state file to track the underlying resources it creates and manages.

B.

The directory is used to convert and store Terraform configuration files into API calls to communicate with the targeted platform.

C.

The directory contains the provider credentials and the .tfvars files to prevent them from being committed to version control by accident.

D.

The directory contains plugins and modules that Terraform downloads during initialization, along with other important information.

Terraform can only manage resource dependencies if you set them explicitly with the depends_on argument.

A.

True

B.

False

terraform apply is failing with the following error. What next step should you take to determine the root cause of the problem?

Error:

yaml

CopyEdit

Error loading state: AccessDenied: Access Denied

status code: 403, request id: 288766CE5CCA24A0, host id: web.example.com

A.

Run terraform login to reauthenticate with the provider.

B.

Set TF_LOG=DEBUG.

C.

Review /var/log/terraform.log for error messages.

D.

Review syslog for Terraform error messages.

Exhibit:

module " network " {

source = " terraform-google-modules/network/google "

version = " ~ > 11.0 "

}

What version of the source module does Terraform allow with the module block shown in the exhibit?

A.

Any version of the module > 11.0.

B.

Any version of the module > = 11.0.

C.

Any version of the module > = 11.0 and < 12.0.

D.

Any version of the module > = 11.0.0 and < 11.1.0.

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

A.

True

B.

False

Which Terraform collection type should you use to store key/value pairs?

A.

Set

B.

Map

C.

Tuple

D.

list

Terraform providers are part of the Terraform core binary.

A.

True

B.

False

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

resource " aws_vpc " " main " {

name = " test "

}

A.

VPC

B.

test

C.

main

D.

aws

What type of block is used to construct a collection of nested configuration blocks?

A.

Dynamic

B.

For_each

C.

Nesting

D.

repeated.

You should run terraform fnt to rewrite all Terraform configurations within the current working directory to conform to Terraform-style conventions.

A.

True

B.

False