Spring 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: 3

Questions 21

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.

HashiCorp Terraform-Associate-004 Premium Access
Questions 22

You must use different Terraform commands depending on the cloud provider you use.

Options:
A.

True

B.

False

Questions 23

You have a simple Terraform configuration containing one virtual machine (VM) in a cloud provider. You run terraform apply and the VM is created successfully. What will happen if you terraform apply again immediately afterward without changing any Terraform code?

Options:
A.

Terraform will terminate and recreate the VM.

B.

Terraform will create another duplicate VM.

C.

Terraform will apply the VM to the state file.

D.

Nothing

Questions 24

You want to know from which paths Terraform is loading providers referenced in your Terraform configuration (* files). You need to enable additional logging messages to find this out. Which of the following would achieve this?

Options:
A.

Set verbose for each provider in your Terraform configuration

B.

Set the environment variable TF_LOG_TRACE

C.

Set the environment variable TF_LOG_PATH

D.

Set the environment variable TF_log_TRACE

Questions 25

When using a remote backend or terraform Cloud integration, where does Terraform save resource sate?

Options:
A.

In an environment variable

B.

On the disk

C.

In the remote backend or Terraform Cloud

D.

In memory

Questions 26

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 27

As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?

Options:
A.

terraform refresh -upgrade

B.

terraform apply -upgrade

C.

terraform init -upgrade

D.

terraform providers -upgrade

Questions 28

Why does this backend configuration not follow best practices?

Terraform-Associate-004 Question 28

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

Questions 29

Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.

Options:
A.

Plan

B.

Import

C.

Alidate

D.

Init

E.

apply

Questions 30

Any user can publish modules to the public Terraform Module Registry.

Options:
A.

True

B.

False