Summer 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 3 hours ago Total Questions : 359

The HashiCorp Certified: Terraform Associate (004) (HCTA0-004) content is now fully updated, with all current exam questions added 3 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 # 11

Does terraform init create an example main.tf file in the current directory?

A.

True

B.

False

Question # 12

Module variable assignments are inherited from the parent module and you do not need to explicitly set them.

A.

True

B.

False

Question # 13

Which of the following methods, used to provision resources into a public cloud, demonstrates the concept of infrastructure as code?

A.

curl commands manually run from a terminal

B.

A sequence of REST requests you pass to a public cloud API endpoint Most Voted

C.

A script that contains a series of public cloud CLI commands

D.

A series of commands you enter into a public cloud console

Question # 14

You are creating a reusable Terraform configuration and want to include an optional billing_dept tag so your Finance team can track team-specific spending on resources. Which of the following billing_dept variable declarations will achieve this?

A.

variable " billing_dept " { type = default}

B.

variable " billing_dept " { default =}

C.

variable " billing_dept " { type = optional(string)}

D.

variable " billing_dept " { optional = true}

Question # 15

Which of the following commands would you use to access all of the attributes and details of a resource managed by Terraform?

A.

terraform state list ‘provider_type.name’

B.

terraform state show ‘provider_type.name’

C.

terraform get ‘provider_type.name’

D.

terraform state list

Question # 16

How could you reference an attribute from the vsphere_datacenter data source for use with the datacenter_id argument within the vsphere_folder resource in the following configuration?

A.

Data.vsphere_datacenter.DC.id

B.

Vsphere_datacenter.dc.id

C.

Data,dc,id

D.

Data.vsphere_datacenter,dc

Question # 17

You can develop a custom provider to manage its resources using Terraform.

A.

True

B.

False

Question # 18

You have never used Terraform before and would like to test it out using a shared team account for a cloud provider. The shared team account already contains 15 virtual machines (VM). You develop a Terraform configuration containing one VM. perform terraform apply, and see that your VM was created successfully. What should you do to delete the newly-created VM with Terraform?

A.

The Terraform state file contains all 16 VMs in the team account. Execute terraform destroy and select the newly-created VM.

B.

Delete the Terraform state file and execute terraform apply.

C.

The Terraform state file only contains the one new VM. Execute terraform destroy.

D.

Delete the VM using the cloud provider console and terraform apply to apply the changes to the Terraform state file.

Question # 19

terraform plan updates your state file.

A.

True

B.

False

Question # 20

What kind of configuration block will manage an infrastructure object with settings specified within the block?

A.

resource

B.

provider

C.

data

D.

locals

Go to page: