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

Exact2Pass Menu

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

Last Update 2 hours ago Total Questions : 340

The HashiCorp Certified: Terraform Associate (004) (HCTA0-004) content is now fully updated, with all current exam questions added 2 hours ago. Deciding to include Terraform-Associate-004 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our Terraform-Associate-004 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these Terraform-Associate-004 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any HashiCorp Certified: Terraform Associate (004) (HCTA0-004) practice test comfortably within the allotted time.

Question # 81

When using multiple configurations of the same Terraform provider, what meta-argument must you include in any non-default provider configurations?

A.

depends_on

B.

alias

C.

name

D.

id

Question # 82

Which of these commands makes your code more human readable?

A.

Terraform validate

B.

Terraform output

C.

Terraform show

D.

Terraform file

Question # 83

Which option cannot be used to keep secrets out of Terraform configuration files?

A.

A Terraform provider

B.

Environment variables

C.

A -var flag

D.

secure string

Question # 84

Which of the following is not a valid Terraform collection type?

A.

Tree

B.

Map

C.

List

D.

set

Question # 85

By default, if you do not define a backend for your configuration, where does Terraform store information about the resources that it manages?

A.

A subdirectory of your home directory named .terraform.d

B.

A file in your configuration ' s directory named terraform.tfstate

C.

A file in your configuration ' s directory named .terraform.lock.hcl

D.

A subdirectory of your configuration named .terraform

Question # 86

Exhibit:

resource " aws_instance " " example " {

ami = " ami-0a123456789abcdef "

instance_type = " t3.micro "

}

You are updating a child module with the resource block shown in the exhibit. The public_ip attribute of the resource needs to be accessible to the parent module. How do you meet this requirement?

A.

Create an output in the child module.

B.

Add a data source to the parent module.

C.

Add an import block to the parent module.

D.

Create a local value in the child module.

Question # 87

Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.

A.

Plan

B.

Import

C.

Alidate

D.

Init

E.

apply

Question # 88

Exhibit:

resource " kubernetes_namespace " " example " {

name = " test "

}

A resource block is shown in the exhibit. How would you reference the name attribute of this resource in HCL?

A.

kubernetes_namespace.example,name

B.

kubernetes_namespace.test.name

C.

data.kubernetes_namespace.name

D.

resource.kubernetes_namespace.example.name

Question # 89

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

A.

Set

B.

Map

C.

Tuple

D.

list

Question # 90

You want to define a single input variable to capture configuration values for a server. The values must represent memory as a number, and the server name as a string.

Which variable type could you use for this input?

A.

List

B.

Object

C.

Map

D.

Terraform does not support complex input variables of different types

Go to page: