Spring Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

Terraform-Associate-004 Exam Dumps - HashiCorp Terraform Associate Questions and Answers

Question # 74

What task does the terraform import command perform?

Options:

A.

Imports resources from one Terraform state file to another.

B.

Imports existing resources into Terraform ' s state file.

C.

Imports a new Terraform module into Terraform ' s state file.

D.

Imports all infrastructure from the configured cloud provider.

E.

Imports provider configuration from one state file to another.

Buy Now
Question # 75

You’ve updated your Terraform configuration, and you need to preview the proposed changes to your infrastructure. Which command should you run?

Options:

A.

terraform show

B.

terraform plan

C.

terraform validate

D.

terraform get

Buy Now
Question # 76

You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?

Options:

A.

Local values

B.

Count arguments

C.

Collection functions

D.

Dynamic blocks

Buy Now
Question # 77

Which method for sharing Terraform modules fulfills the following criteria:

Keeps the module configurations confidential within your organization.

Supports Terraform ' s semantic version constraints.

Provides a browsable directory of your modules.

Options:

A.

A Git repository containing your modules.

B.

Public Terraform module registry.

C.

A subfolder within your workspace.

D.

HCP Terraform/Terraform Cloud private registry.

Buy Now
Question # 78

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

Options:

A.

version ~ > 3.1

B.

version > = 3.1

C.

version = " > = 3.1 "

Buy Now
Question # 79

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

Options:

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

Buy Now
Question # 80

You ' re writing a Terraform configuration that needs to read input from a local file called id_rsa.pub. Which built-in Terraform function can you use to import the file ' s contents as a string?

Options:

A.

fileset( " id_rsa.pub " )

B.

file( " id_rsa.pub " )

C.

filebase64( " id_rsa.pub " )

D.

templatefile( " id_rsa.pub " )

Buy Now
Question # 81

Which of the following arguments are required when declaring a Terraform output?

Options:

A.

value

B.

description

C.

default

D.

sensitive

Buy Now
Question # 82

Terraform variables and outputs that set the description argument will store that description in the state file.

Options:

A.

True

B.

False

Buy Now
Question # 83

Which of the following is availableonlyinHCP Terraform workspacesandnot in Terraform CLI?

Options:

A.

Dry runs with terraform plan.

B.

Secure variable storage.

C.

Using one workspace ' s state as a data source for another.

D.

Support for multiple cloud providers.

Buy Now
Exam Name: HashiCorp Certified: Terraform Associate (004) (HCTA0-004)
Last Update: Apr 6, 2026
Questions: 318
Terraform-Associate-004 pdf

Terraform-Associate-004 PDF

$25.5  $84.99
Terraform-Associate-004 Engine

Terraform-Associate-004 Testing Engine

$28.5  $94.99
Terraform-Associate-004 PDF + Engine

Terraform-Associate-004 PDF + Testing Engine

$40.5  $134.99