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: 7 / 11
Total 366 questions

In a HCP Terraform/Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.

A.

True

B.

False

The public Terraform Module Registry is free to use.

A.

True

B.

False

You decide to move a Terraform state file to Amazon S3 from another location. You write the code below into a file called backend.tf.

Which command will migrate your current state file to the new S3 remote backend?

A.

terraform state

B.

terraform init

C.

terraform push

D.

terraform refresh

You want to create a string that is a combination of a generated random_id and a variable, and reuse that string several times in your configuration.

What is the simplest correct way to implement this without repeating the random_id and variable?

A.

Use a data source.

B.

Use a module.

C.

Add a local value.

D.

Add an output value.

Which command add existing resources into Terraform state?

A.

Terraform init

B.

Terraform plan

C.

Terraform refresh

D.

Terraform import

E.

All of these

Which type of information does the Terraform Registry provide about the modules it hosts?

A.

Required input variables

B.

Outputs

C.

Optional input variables and default values

D.

All of these are provided

INcheck block ' s assertion fails, Terraform blocks the current operation from executing.

A.

True

B.

False

terraform init retrieves and caches the configuration for all remote modules.

A.

True

B.

False

When should you use the force-unlock command?

A.

When apply has failed due to a state lock.

B.

When you have a high-priority change.

C.

When automatic unlocking has failed.

D.

When you see a status message stating that you cannot acquire the lock.

Which command(s) adds existing resources in a public cloud into Terraform state?

A.

terraform init

B.

terraform plan

C.

terraform refresh

D.

terraform import

E.

All of these