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

Legit Terraform-Associate-004 Exam Download

HashiCorp Certified: Terraform Associate (004) (HCTA0-004) Questions and Answers

Question 49

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

Question 50

You want to bring an existing database under Terraform management. What information is required to create a new import block for the database?

Pick the two correct responses below.

Options:

A.

The destination resource address of the block that will manage the database.

B.

The path to the .tf file that contains the database resource block.

C.

The ID associated with the current database on the cloud provider.

D.

The database platform and version that the existing resource is running.

E.

The connection string that Terraform will use to connect and manage the database.

Question 51

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?

Options:

A.

variable " billing_dept " {

default = " "

}

B.

variable " billing_dept " {

optional = true

}

C.

variable " billing_dept " {

type = optional(string)

}

D.

variable " billing_dept " {

type = default

}

Question 52

The HCP Terraform private registry keeps the module configurations confidential within your organization.

Options:

A.

True

B.

False