Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: sale65best

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

Questions 61

Which of the following is not a valid string function in Terraform?

Options:
A.

chomp

B.

join

C.

slice

D.

split

HashiCorp Terraform-Associate-003 Premium Access
Questions 62

A senior admin accidentally deleted some of your cloud instances. What will Terraform do when you run terraform apply?

Options:
A.

Tear down the entire workspace's infrastructure and rebuild it.

B.

Build a completely brand new set of infrastructure.

C.

Rebuild only the instances that were deleted.

D.

Stop and generate an error message about the missing instances.

Questions 63

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 64

You're writing a Terraform configuration that needs to read input from a local file called id_rsa.pub . Which built-in Terraform function can you use to import the file's contents as a string?

Options:
A.

file("id_rsa.pub")

B.

templaTefil("id_rsa.pub")

C.

filebase64("id_rsa.pub")

D.

fileset<"id_rsa.pub")

Questions 65

If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

Options:
A.

Run terraform refresh

B.

It will happen automatically

C.

Manually update the state fire

D.

Run terraform import

Questions 66

What is modified when executing Terraform inrefresh-only mode?

Options:
A.

Your Terraform configuration.

B.

Your Terraform plan.

C.

Your state file.

D.

Your cloud infrastructure.

Questions 67

Using the terraform state rm command against a resource will destroy it.

Options:
A.

True

B.

False

Questions 68

A provider configuration block is required in every Terraform configuration.

Example:

Terraform-Associate-003 Question 68

Options:
A.

True

B.

False

Questions 69

Before you can use a remote backend, you must first execute terra-form init.

Options:
A.

True

B.

False

Questions 70

As a member of an operations team that uses infrastructure as code (lac) practices, you are tasked with making a change to an infrastructure stack running in a public cloud. Which pattern would follow laC best practices for making a change?

Options:
A.

Make the change via the public cloud API endpoint

B.

Clone the repository containing your infrastructure code and then run the code

C.

Use the public cloud console to make the change after a database record has been approved

D.

Make the change programmatically via the public cloud CLI

E.

Submit a pull request and wait for an approved merge of the proposed changes