Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free HashiCorp Terraform-Associate-003 Practice Exam with Questions & Answers | Set: 3

Questions 21

You've used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database. What is the best way to achieve this using Terraform?

Options:
A.

Use the terraform state rm command to remove the VM from state file

B.

Use the terraform taint command targeting the VMs then run terraform plan and terraform apply

C.

Use the terraform apply command targeting the VM resources only

D.

Delete the Terraform VM resources from your Terraform code then run terraform plan and terraform apply

HashiCorp Terraform-Associate-003 Premium Access
Questions 22

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.

Terraform-Associate-003 Question 22

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

Options:
A.

terraform state

B.

terraform init

C.

terraform push

D.

terraform refresh

Questions 23

Setting the TF_LOG environment variable to DEBUG causes debug messages to be logged into stdout.

Options:
A.

True

B.

False

Questions 24

Infrastructure as Code (laC) can be stored in a version control system along with application code.

Options:
A.

True

B.

False

Questions 25

What Terraform command always causes a state file to be updated with changes that might have been made outside of Terraform?

Options:
A.

Terraform plan –refresh-only

B.

Terraform show –json

C.

Terraform apply –lock-false

D.

Terraform plan target-state

Questions 26

Which of these statements about HCP Terraform/Terraform Cloud workspaces is false?

Options:
A.

They can securely store cloud credentials.

B.

They have role-based access controls.

C.

Plans and applies can be triggered via version control system integrations.

D.

You must use the CLI to switch between workspaces.

Questions 27

Which type of block fetches or computes information for use elsewhere in a Terraform configuration?

Options:
A.

data

B.

local

C.

resource

D.

provider

Questions 28

A resource block is shown in the Exhibit space of this page. What is the Terraform resource name of the resource block?

Options:
A.

test

B.

google

C.

compute_instance

D.

main

Questions 29

While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging. Which environment variables must be configured to make Terraform's logging more verbose?

Options:
A.

TF_LOG_PAIH

B.

TF_LOG

C.

TF_VAR_log_path

D.

TF_VAR_log_level

Questions 30

Which option cannot be used to keep secrets out of Terraform configuration files?

Options:
A.

A Terraform provider

B.

Environment variables

C.

A -var flag

D.

secure string