Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free HashiCorp Terraform-Associate-004 Practice Exam with Questions & Answers | Set: 6

Questions 51

Why does this backend configuration not follow best practices?

Terraform-Associate-004 Question 51

Options:
A.

An alias meta-argument should be included in backend blocks whenever possible

B.

You should use the local enhanced storage backend whenever possible

C.

You should not store credentials in Terraform configuration

D.

The backend configuration should contain multiple credentials so that more than one user can execute terraform plan and terraform apply

HashiCorp Terraform-Associate-004 Premium Access
Questions 52

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

Options:
A.

terraform init

B.

terraform plan

C.

terraform refresh

D.

terraform import

E.

All of these

Questions 53

Terraform requires using a different provider for each cloud provider where you want to deploy resources.

Options:
A.

True

B.

False

Questions 54

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 2 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.

Questions 55

When you use a backend that requires authentication, it is best practice to:

Options:
A.

Run all Terraform commands on a shared server or container.

B.

Configure the authentication credentials in your Terraform configuration files, and store them in version control.

C.

Use environment variables to configure authentication credentials outside of your Terraform configuration.

D.

None of the above.

Questions 56

Terraformrequiresthe Go runtime as a prerequisite for installation.

Options:
A.

True

B.

False

Questions 57

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.

Options:
A.

True

B.

False

Questions 58

When should you use the terraform force-unlock command?

Options:
A.

When terraform 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 Terraform cannot acquire the lock.

Questions 59

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

Questions 60

Which of the following is not a valid source path for specifying a module?

Options:
A.

source - " github.com/hashicorp/examplePref-ul.0.8M

B.

source = " ./module?version=vl.6.0 "

C.

source - " hashicorp/consul/aws "

D.

source - " ./module "