Pre-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: 9 / 10
Total 318 questions

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

A.

Terraform state show ‘ provider_type_name

B.

Terraform state list

C.

Terraform get provider_type_name

D.

Terraform state list provider_type_name

Which of the following is not a benefit of adopting infrastructure as code?

A.

Versioning

B.

A Graphical User Interface

C.

Reusability of code

D.

Automation

Which provider authentication method prevents credentials from being stored in the state file?

A.

Using environment variables

B.

Specifying the login credentials in the provider block

C.

Setting credentials as Terraform variables

D.

None of the above

A Terraform output that sets the " sensitive " argument to true will not store that value in the state file.

A.

True

B.

False

terraform apply will fail if you have not run terraform plan first to update the plan output.

A.

True

B.

False

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

A.

version ~ > 3.1

B.

version > = 3.1

C.

version = " > = 3.1 "

You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?

A.

Run terraform refresh.

B.

Run terraform init -upgrade.

C.

Run terraform apply -upgrade.

D.

Upgrade your version of Terraform.

Which configuration consistency errors does terraform validate report?

A.

Terraform module isn ' t the latest version

B.

Differences between local and remote state

C.

Declaring a resource identifier more than once

D.

A mix of spaces and tabs in configuration files

Only the user that generated a terraform plan may apply it.

A.

True

B.

False

What task does the terraform import command perform?

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.